Hi all,
I am trying to learn the basic concept about array, however when I tried to change the type into string, it shows error .. I am using IDE visual studio 2005
#include <iostream>
#include <string>
using namespace std;
int main()
{
string stName[20];
cout << "what is your name? " << endl;
cin >> stName;
cout << stName << endl;
}
Thanks for the assistance..