Which keyword should be placed instead of ... for the program to compile successfully?

#include <iostream>
using namespace std;
class TheClass {
    TheClass() {}
    ... void methodPub() {cout << "I did it!!!";}

int main(void) {
  void (* realFunction)() = &TheClass::methodPub;
  return 0;
There are two types of function calls: regular function call and the class method call. The static class method is called as an ordinary function. (Paragraph 5.2.2 on p. 68 of the "International standard ISO/IEC 14882" document).

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Зарегистрируйся сейчас
или Подпишись на будущие тесты