How can you define a function of a class to be recursive?, this is what I have been doing: class A { private: public: _recursive(A *var); recursive() } A::recursive() { _recursive(this) } A::_recursive(A *var) { _recursive(var->next); } And on main: A ...
Home/c++
Softans Latest Questions
Is there an easier way to do this logical? It is used often and each time I have the impression that it is unnecessary. if (x != y) x = y; In more time-consuming methods, you have to use variables so ...