17 lines
276 B
C++
17 lines
276 B
C++
|
#include "Shapes.h"
|
||
|
|
||
|
int main(){
|
||
|
Cube c;
|
||
|
Cube c2(1,4,6);
|
||
|
|
||
|
std::vector<Cube> Cubes;
|
||
|
Cubes.push_back(c);
|
||
|
Cubes.push_back(c2);
|
||
|
Cubes.push_back(Cube(6,8,9));
|
||
|
|
||
|
for ( auto x : Cubes){
|
||
|
std::cout << x.EvalVolume() << "\n";
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|