#include<iostream>
#include<string>
using namespace std;
void main(){
string str="abc";
cout<<str;
system("pause");
}
If i do not include string header file then there is an error at << in line cout<
I thought the error will be at line where str is defined.