fork download
  1. #include <iostream>
  2. class Bix
  3. {
  4. public:
  5. static void MyFunction() { std::cout << "Yay" << std::endl; }
  6. };
  7. int main()
  8. {
  9. void(*ptr)() = &Bix::MyFunction;
  10. std::cout << "It works" << std::endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
It works