So I've been reading and decided I would not only try to steer myself away from programming with Orwell Dev-C++, but Windows as well. I am trying to learn not only to compile from the terminal (which is going just fine), but I would like to know how to use C::B on Linux as well. So basically I have a bit of code that would compile just fine on Windows with Dev-C++, but does not compile on on C::B. It gives me the following compiler error:
error: expected primary-expression before ‘.’ token
I don't see any issue with the code, it's a simple class that only holds the variable "string name" so far and in a function called "introduction()" it asks the player to input a name into that string.
1 2 3 4 5 6 7 8