I've been trying to compile a very simple c++ code ; when trying to compile on codeblocks it says : error - stray '\312' in program
#include <string>
#include <iostream>
using namespace std;
int main()
{
char letter1, letter2;
string lastName;
cout << "Enter your two initials and last name ";
cin >> letter1 >> letter2 >> lastName;
cout << "Hello" << letter1 << "." << letter2 << "." << lastName << "!";
cout << "Hope you enjoy C ++ " << endl;
return 0;
}
I'm on mac however so that migth explain the problem,