c-resources/CPlusPlus20ForProgrammers-m.../examples/Shapes/dd/main.cpp

17 lines
276 B
C++
Raw Normal View History

2024-05-28 06:06:28 +00:00
#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;
}