I know this is probably a very stupid question, but I can't make the user input a string.I thought I could use cin...here is my code:
#include<iostream>
//#include<cstdlib>
//#include<cstdio>
#include<cstring>
using namespace std;
int main()
{
int x=0;
string thing[10];
cin>>thing;
//x=atoi(thing.c_str());
//cout<<x;
system("pause");
return 0;
}
I then get an error message saying: error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string [10]' (or there is no acceptable conversion)