- 1
How do you get a program or function to save user input information, what does the source code look like?
c++
2 Réponses
+ 6
use cin>> and variable. example:
//declare variable a,b and c
int a=12,b,c;
cin>>b; //user input stored in b
c=a+b;
cout<<c; //print the result
+ 1
Thanks for your idea, I will try...