So I'm trying to get down classes
And its really had when the tut says "see book" and the books say "look online"
I have two books, one form 1994 or so and one form 2005 (they made me broke for a while)
But when I try to use them they don't work in my compilers, I can understand the 1994 one but the 2005 got me worried.
Code:
#include <iostream>
#include <string>
using namespace std;
class grade_book // names the class "grade book"
{
public:
void welcome_msg ()
{
cout<< "Welcome to grade book" << endl;
}
};
int main()
{
grade_book my_grade_book;
my_grade_book.welcome_msg();
return 0;
}
so where is the msitake? is it in the book or is it just my two compilers?