Ryaxxx
Member
- Joined
- Aug 13, 2008
- Sythe Gold
- 0
- Messages
- 29
I'm new to using strings and i need help. I know something is completely wrong but i'm not sure what to do.
(This is from Raid500's Basics of C++ Thread with a few changes)
Code:
#include <iostream>
#include <string>
using namespace std;
string string;
int string1 = string1;
int string2 = string2;
int main ()
{
cout << "What's your name?" << endl;
cin >> string1;
cout << "Hello " << string1 << endl;
system("PAUSE");
cout << "Do you have a favorite color?" << endl;
cin >> string2;
cout << "I think the color " << string2 << " is cool" << endl;
system("PAUSE");
return 0;
}
(This is from Raid500's Basics of C++ Thread with a few changes)




