#include using namespace std; class MyClass { public: void printInformation(); }; void MyClass::printInformation() { return; } int main(
You need to create an object since printInformation() is non-static. Try:
printInformation()
int main() { MyClass o; o.printInformation(); fgetc( stdin ); return(0); }