i have created stairs using my code however i need a character to move up the stairs using keypress
here is my code so far:
CursorController crs;
int Number;// the number of stairs
int Amount = 1; // this is the amount of x it will add
cout << "Enter in how many 'stairs' you want" << endl;
cin >> Number;
for(int i = 0; i < Number; i++)
{
for(int j = 0; j < Amount; j++)
{
cout << "X";
}
cout << endl;
Amount +=1; //Adds 1 'X' after every new line
}
cin.get();
return 0;
}
is there anyway of overcoming this?