+ 1

include <iostream> #include <string> using namespace std; class cofe { private: bool (checkvolt)() { return true ;

https://code.sololearn.com/cOM2FT4QOj6f/?ref=app . What's wrong with that? https://code.sololearn.com/cOM2FT4QOj6f/?ref=app

20th Jun 2020, 1:48 AM
Buneodbek
Buneodbek - avatar
1 Respuesta
+ 3
Your "public" is outside the class.
20th Jun 2020, 1:59 AM
Arsenic
Arsenic - avatar