Name: Anonymous 2013-05-10 13:45
Why is /g/ full of stupid fugin goyims. I must now bleach my eyes are seeing this, and fuckwods replying that the code is not bad
' > there are errors but fuck it, this doesn't need 2 fucking for loops
#include <IOSTREAM>
using namespace std;
Class Printing {
public:
void printchar(char a) {
cout << a;
};
void seta() {
cout << "What is the value? ";
cin >> a;
junk = '#';
}
void setheight() {
cout << "What is the height? ";
cin >> height;
};
void setwidth() {
cout << "What's the width? ";
cin >> width;
};
char a;
char junk;
int height;
int width;
}
Printing a;
a.seta();
a.setheight():
a.setwidth();
for (int i = 0, int q = 0, int j = a.a; q != a.height; i++)
{
if (i == a.width) {
i = 0;
cout << endl;
q += 1;
}
if ((i - q) == 0)
a.printchar(j);
else
a.printchar(a.junk);
}
}