Help with classes
I need help with classes!!!! I have the concept of public and private objects but i was wondering how would i if I can declare my functions in a header file...i am working on an assignment and I am kind of stuck...I just need a little help to get me rolling again...
[266 byte] By [
cmoney24] at [2007-11-11 10:27:05]

# 1 Re: Help with classes
From the plaintive tone of your post, I take it that you asking about this:
MyClass.h
class MyClass
{
private:
int myInt;
string myString;
vector<int> myVec;
MyClass& copy( const MyClass& yourClass);
public:
MyClass();
MyClass( int, string );
~MyClass();
string printName();
void storeInt( int );
};
nspils at 2007-11-11 20:58:46 >
