+ 1
Below code returns an error b does not name a type. why ?? Is variable assignment not allowed in classes like general assignment
class x { private: int a; public: int b,c; b=c; };
2 ответов
+ 1
It is because you are trying to use c without defining it.
Here you have declared c but it also needs to be defined to be used.
0
hy