sorry but i'm stuck again...heres my code
#include <iostream>
#include <string>
using namespace std;
int main()
{
string name;
cout<<"Enter Your Name: ";
cin>> name;
if(name==Chris)
{
cout<<"welcome Chris";
}
else if(name==nick)
{
cout<<"welcome Nick";
}
return 0;
}
this isn't really what my programs gunna be i was just seeing if i could use the if statements...anyway. could someone tell me whats wrong i have like 4 errors with it.



LinkBack URL
About LinkBacks




Have a nice day.