0

I would like to read 2 strings from terminal, but my code is not working. I have two cout and getline. My Goal is: Read Two strings with spaces

MyCode:

cout << "Description  " << endl;
getline (cin,VarGros);

cout << "Description1:  " << endl;
getline(cin, VarBeschr);

If I run this Code, They print

Description
Description1  ((User Input))
Lukas-T
  • 11,133
  • 3
  • 20
  • 30
Mr. Conte
  • 9
  • 1

0 Answers0