22 lines
458 B
C++
22 lines
458 B
C++
#include "Canvas.h"
|
|
|
|
int main() {
|
|
system(("chcp " + std::to_string(65001)).c_str());
|
|
std::cout << "Hello, World!" << std::endl;
|
|
|
|
Canvas can;
|
|
Rectangle j(ColorCode::Blue,5,6);
|
|
can.addShape(&j);
|
|
Rectangle k(ColorCode::Red,5);
|
|
can.addShape(&k);
|
|
Triangle i(ColorCode::Green, 5);
|
|
can.addShape(&i);
|
|
Diamand l(ColorCode::Blue, 4);
|
|
can.addShape(&l);
|
|
|
|
can.print();
|
|
std::cout << can.getTotalArea();
|
|
|
|
return 0;
|
|
}
|