+ 1
What should use to feed variable to program by user?
aa if we want to feed 1 we proceed as int a; cin >> a; cout << a ; after running program if we type any integer then it will show as same output... and now I want to input a variable say 'j' then what should I use..... or what should I use in place of cin to get desired output..
3 Respuestas
+ 1
j is not an integer but a string, you need to declare variable string and include #include <string> in the header
0
plz answer
0
thanx