fixed
Last edited on
I'd suggest to introduce another string which you show on line 18 and add variable
+ space to (after line 19). Reset it after compute
Thanks for the tip but I'm a little confused on how I woudl go about resetting the string after "compute"?
On line 18 right now I have
cout << "Enter: " << variable << " ";
What this does is output the previous variable I typed before the second input. When I add
variable
+ space after line 19 like this
1 2 3
|
cout << "Enter: ";
cin >> variable;
cout << variable << " " << endl;
|
I get this
Enter: 1
1
Enter:2
2
Enter:3
3
I need to be able to have the stack on the same line as my input line. They can't be on separate lines.
Thanks!
Last edited on
fixed
Last edited on
Any help? Been stuck on this for a couple of hours now :(