Hello, I've been having some problems regarding program functionality. The other day I decided to write a small program which prints the 255 ASCII characters in an organized manner. The thing is, the program starts but does nothing at all, but sit there at Command Prompt. I finished reading SAMS Teach Yourself C++ in 21 Days and decided writing my own small programs, so I'm still somewhat a beginner in the sense that I have no real experience, so obviously, my strategies in this are a bit sloppy.
Code:
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main()
{
unsigned char x;
for (unsigned short i = 0; i >= x; i++)
{
cout << x;
if (x == 50 || x == 100 || x == 150 || x == 200)
cout << endl;
}
cin.get();
return 0;
}