0

no using the using namespace std;

I was working on classes and i have not any issued before, everything was working good, but when i started working without namespace std; the compiler drop me error on the method of classes. so any one can clarified me what was going on please . end the code is very simple !! to me the code looks good. the code is like this= class tramhMarquez{ public: void setName(string theDriver) { //the compiler said that i have an issued right here name = theDriver; } string getName(){ return name; } private: string name;

4th Sep 2020, 1:44 AM
JRAMAHES
JRAMAHES - avatar
3 ответов
+ 2
Please include relevant tags, specify the language (C++) in the thread's tags rather than 'mh', which is meaningless and irrelevant 👍
4th Sep 2020, 3:43 AM
Ipang