24 May
2022
24 May
'22
10:07 p.m.
#include <iostream> using namespace std; class Triangle { public: Triangle(int width, int height) : width(width), height(height) { } void draw() { for (int row = 0; row < height; ++ row) { todo todo syntax error cout << endl; } } private: int width, height; void lineOf(char ch, int count) { for(; count; -- count) cout << ch } } int main() { Triangle triangle; triangle.draw(); }