repl.it
C++

No description

fork
loading
Files
  • main.cpp
  • Cube.cpp
  • Cube.h
main.cpp
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include "Cube.h"
using namespace std;
int main(){
  Cube c1;
  c1.Volume(5);
  c1.Surface_Area(12);
  cout << "Volume = " << c1.GetV() << ", and Surface Area = " << c1.GetSA() << ".\n";
  return 0;
}
Fetching token
?