include <iostream> #include <string> using namespace std; class cofe { private: bool (checkvolt)() { return true ; | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
+ 3
Your "public" is outside the class.
20th Jun 2020, 1:59 AM
Arsenic
Arsenic - avatar