[ create a new paste ] login | about

Link: http://codepad.org/AMt9sDzN    [ raw code | output | fork ]

C++, pasted on Feb 15:
1
2
3
4
5
6
7
8
9
10
11
int main(){ 
string str[100];
std::cout<<"Hello how are you ? \n";
std::cin>>str;
if(str.length() > 0){
// If input is seen
}
else{
// If input is not seen
}
}


Output:
1
2
3
In function 'int main()':
Line 4: error: no match for 'operator>>' in 'std::cin >> str'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: