Hi,
cin
getline
C
// includes
#include <iostream>
#include <string>
// Namespaces
using namespace std;
//Main Programm
int main () {
// Deklaration
string sName;
//Programm
cout << "Bitte Vor- und Nachnamen eingeben: ";
getline(cin, sName);
cout << "Sie heissen also " << sName << endl;
// End
system("Pause");
return 0;
}
Alles anzeigen
Gruß
Greenhorn