#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();
}
