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; }
1 2
Line 12: error: expected constructor, destructor, or type conversion before '<<' token compilation terminated due to -Wfatal-errors.