I'm just a newb so this is very hard for me.
I'm trying to make a guess what number this is game and I want to go back to a section of code like I would in Qbasic. The problem is that C++ doesn't use labels like 10, 20, 30 ,40, etc..
Any help would be appreciated.
The code so far is:
Code:#include <iostream> int x=0 int main() { cout<< "You get three trys.\n" cin>>x x=x+1} if (x=1) { cout<< "First try" } if (x=2) { cout<< "Second try" } if (x=3) { cout<< "Last try" }