OMG, I just looked at your code in the other thread, and if you code like that you'll have one heck of a time trying to write any type of graphical game. Don't even attempt Tetris, go simpler with something like graphical tic-tac-toe, or even better yet, try solitaire or blackjack on a command line interface. Graphics in C++ are a royal pain and until you can write a good engine you'll be wasting your time.
First off, format your code, or debugging will be near impossible.
Get rid of i before every int (or any abbreviation for a type), its the worst way to code ever and makes reading your code a pain. A good compiler won't let you assign the wrong value type to it anyways without having to cast which you can read anyways.
Put your open brace on a new line also, It'll make everything so much easier when your trying to figure out what the heck your doing.
Use for loops, they are your friend.
your code in your other thread should have looked like this which is only 37 lines of code. Even then, magic numbers are bad, and should be replaced by constants.
#include
#include
#include
using namespace std;
void main()
{
system("TITLE COOKIE JAR GUESSING GAME");
system("COLOR 2");
int cookies;
int guess;
bool won = false;
srand((unsigned int)time(0));
cookies = rand()%10+1;
cout<<"guess how many cookies are in the jar"<
for(int i = 0; i < 3 && !won; ++i)
{
cin>>guess;
if(guess < cookies)
{
cout<<"too low"<
}
else if (guess > cookies)
{
cout<<"too high" << endl;
}
else // guess == cookies
{
cout<<"you win!"<
won = true;
}
}
system("PAUSE");
}








