Hello i am using Eclipse and don't know how to test my program when i use cin for example when my program is running, type in a number.
does anyone know how this works in eclipse? thanks
When you use cin, in most cases your program have to get input from the user before anything happens and i don't know how to enter that input to my program on eclipse? e.g.
1 2 3
int myNum;
cout << "Enter a number: " << endl;
cin >> myNum;
after compile and execute there will be needed to enter a number, as it says in the code above.
i have posted this before on this forum but there was no answers really, so i try again hope its okay.
You might have messed with your eclipse and accidently closed your console tab. If not then you should see "console" on the bottom of your eclipse (under your code).