|
-
April 18th, 2001, 12:43 PM
#1
Rookie Debugging
Simple unterminated constant. The problem i think is with the if statement.
int main ()
{
string name;
string address;
string phonenumber;
string name;
cout<< "What is your name? ";
cin>> name;
If name="What is your name?";
name="Amy Tay";
address="3102 Peterboro Drive";
phonennumber="330-678-7557";
cout<<"\t"<<name<<\n";
cout<<"\t"<<address<<\n";
cout<<"\t"<<phonennumber<<\n";
}
#include <iostream.h>
using namespace std;
int main()
int age, float Weight;
age=26;
weight=180;
cout<<"My age is"<<age<<"and my weight is"<<weight<<"pounds."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|