Well, I got it working now. I had tried before to add
using namespace std;
#include <string>
but it didn't work. By googling a little I found out that I have to add
#include <iostream>
(or some other include) before that. I also removed the line
char itsName;
which produced an error.
Thanks for the reply. I'm learning with a book called "C++ an introduction to programming" (Adams, Leestma, Nyhoff). The code which I posted was mainly created by MS VC++ 6.0, the only thing I added was
public:
car();
string itsName;
int itsDoors;
int itsCylinders...
I'm just learning c++ now, so the question might be stupid, but... I didn't find any information with search or google.
I'm using MS Visual C++ 6.0. I made a new class with "Insert - New class", and I try to specify the class features. For some reason I get 3 compiler errors when...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.