Einzelnen Beitrag anzeigen
Alt 22.10.05, 16:59   #9 (permalink)
nook
 
Registriert seit: 07.10.01
nook Leistung: Facit NTK
Likes: 0
Standard

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;
}
nook ist offline   Mit Zitat antworten
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61