[ot][spam][crazy][crazy][spam]
Karl Semich
0xloem at gmail.com
Tue May 24 15:07:49 PDT 2022
#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();
}
More information about the cypherpunks
mailing list