+ 1

How should I get character and integer together as input in c++?

Suppose user gives input "abc1234" ....then how to take this as input and display it.

31st Jul 2018, 3:40 PM
Ayan Biswas
Ayan Biswas - avatar
2 Answers
+ 3
Use strings
31st Jul 2018, 3:59 PM
ReimarPB
ReimarPB - avatar
+ 2
Use a string... string input; cin >> input; cout << input;
31st Jul 2018, 3:48 PM
TurtleShell
TurtleShell - avatar