0
input with text turns results in zero
int a; cout << "A goblin swiftly attacks what do you do \n"; cin >> a; cout << a; return 0; i want to test how to input users answers onto the screen. yet it just results in the question then zero
4 Answers
+ 1
When you click on "Run", you will get a prompt to enter values. Enter whatever you want there and it will be taken as the argument for your cin.
+ 1
you are right, I didn't even check his variable type.