Hello i was wonder how you can change a string name cause when i try to do
#include <iostream>
#include <windows.h>
#include <string>
using namespace std;
int main ()
{
char *line = "short line for testing";
sting s1;
s1 = "Name";
cout << "Hello what is your name?\n";
cin >> s1;
cout << "Hello " << s1;
system("PAUSE");
return 0;
}
there's a problem and i don't know what it is i would appreciate if someone could help me.
C++ question plz help
Re: C++ question plz help
It is just spelling mistake. Look at line ten...
- hallsofvallhalla
- Site Admin
- Posts: 12031
- Joined: Wed Apr 22, 2009 11:29 pm
Re: C++ question plz help
nice catch perry
Re: C++ question plz help
Thank you i didn't see that.
Re: C++ question plz help
No problem. Glad to help. Post anymore question you might have and I will see what I can do to help.pvtlink wrote:Thank you i didn't see that.