- Feb 13, 2004
- 1,360
- 0
- 0
I made a little program for a friend, but the variable is only storing the first character of the name. Any fixes?
CODE:
#include <iostream.h>
int main ()
{char name;
cout<<"Submit Name:";
cin>>name;
cout<<"Processing"<<endl;
cout<<"Please wait"<<endl;
cout<<name<<", what a stupid name!!"<<endl;
return 0;}
CODE:
#include <iostream.h>
int main ()
{char name;
cout<<"Submit Name:";
cin>>name;
cout<<"Processing"<<endl;
cout<<"Please wait"<<endl;
cout<<name<<", what a stupid name!!"<<endl;
return 0;}
