[ create a new paste ] login | about

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

kamarakay2000 - C++, pasted on May 30:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <string>
using std::string;
using std::cout;
using std:: endl;
int main()
{
    string Hello("Hello");
    Hello += "world";
    cout <<Hello<< endl;
    if(Hello ==" Hello word");
}
cout<< equal<< endl;
{
return 0;
}


Output:
1
2
Line 12: error: expected constructor, destructor, or type conversion before '<<' token
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: