2 Topics

Member Avatar for
Member Avatar for OrangeTree

Hello :). How can I fix this? Yes, I can write 2 functions (with and without parameter) ... but what is bad there? #include <cstdlib> #include <string> #include <iostream> using namespace std; class CClass{ public: void foo(string & s = "default"); // COMPILE ERROR string backup; }; void CClass::foo(string & …

Member Avatar for OrangeTree
0
152
Member Avatar for TrueCoding

Hi Im having this issue with my code. Cannot implicitly convert type 'string' to 'Event' (Class) - Thats the error message. Im trying to save an object of my class to an array but its coming up with this message and I dont see why it cant do it because …

Member Avatar for Mitja Bonca
0
411

The End.