Hmm dann bin ich wohl zu spät...
Hatte das vorhin vergessen, Lesco hat recht! So funktionierts:
Code:
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main(int argc, char *argv[])
{
string name;
string addy;
string tel;
string geb;
cout<<"Guten Tag, das ist ihr persönliches kleines Adressbuch."<<endl<<endl<<endl;
cout<<"Name: "<<endl;
getline(cin, name);
cout<<"Adresse: "<<endl;
getline(cin, addy);
cout<<"Telefonnummer: "<<endl;
getline(cin, tel) ;
cout<<"Geburtstag: "<<endl;
getline(cin, geb);
cout<<endl<<endl<<endl;
cout<<"Name: "<<name<<endl;
cout<<"Adresse: "<<addy<<endl;
cout<<"Telefonnummer: "<<tel<<endl;
cout<<"Geburtstag: "<<geb<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}