Hi,
Got a program that will compile in the Borland command line compiler, however when I try to compile the same code in Visual, it comes up with errors. I know it has something to do with the header files used, but I don't know which ones to include when using Visual.
When using Borland works fine...
Code:#include <STRING> #include <DEQUE> #include <VECTOR> #include <algorithm>Then use the same code in Visual and get errors, does anyone know what include file I should be using??Code:class worker { protected: string name; // Error message here: 'string' :missing storage-class or type specifiers ozDate startDate; public: worker (string, ozDate*); string getName() const; ozDate getStartDate() const; void showName(int) const; void showStartDate() const; virtual double showTotalPay(ozDate& inToday) const; virtual void changeName(string inNewName); virtual void displayType() const; virtual void showExpiryDate() const; virtual ozDate getExpiryDate() const; };
Regards Barbes




Reply With Quote