I feel really bad for asking this, but I've completely forgotten how to make .h files.
Suppose i had this class. How would I seperate it into .h and .cpp files:
Code:class P { public: P(); ~P(); void setI(int num); void printP(); private: int i; }; P::P() {} P::~P() {} void P::setI(int num) { i = num; } void P::printP() { cout<<i<<endl; }