SteveCRM
Jan 6th, 2001, 07:32 PM
char Name[101];
int Phone;
char Address[101];
cout<<"Enter the name of a person: "<<endl<<">";
cin.getline(Name,101,'\n');
cout<<"Enter "<<Name<<"'s phone number: "<<endl<<">";
cin>>Phone;
cout<<"Enter "<<Name<<"'s address: "<<endl<<">";
cin.getline(Address,101,'\n');
cout<<"========================================"<<endl;
cout<<"Name: "<<Name<<endl<<"Phone: "<<Phone<<endl<<"Address: "<<Address<<endl;
This is my code, but when it runs, it doesn't execute the bold part. Why is this? Is it just my computer?
int Phone;
char Address[101];
cout<<"Enter the name of a person: "<<endl<<">";
cin.getline(Name,101,'\n');
cout<<"Enter "<<Name<<"'s phone number: "<<endl<<">";
cin>>Phone;
cout<<"Enter "<<Name<<"'s address: "<<endl<<">";
cin.getline(Address,101,'\n');
cout<<"========================================"<<endl;
cout<<"Name: "<<Name<<endl<<"Phone: "<<Phone<<endl<<"Address: "<<Address<<endl;
This is my code, but when it runs, it doesn't execute the bold part. Why is this? Is it just my computer?