#include <iostream> #include "Sally.h" using namespace std; int main() { Sally sallyObject; sallyObject.printCrap(); return 0; }
#ifndef SALLY_H #define SALLY_H class Sally { public: Sally(); void printCrap(); protected: private: }; #endif // SALLY_H
#include "Sally.h" #include <iostream> using namespace std; Sally::Sally() { } void Sally::printCrap(){ cout << "Did someone say steak?" << endl; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)