creating a class

Hello everyone,

i'm quite new to c++. Actually i found it okay until my professor told us to create a class file for. I've been trying to follow templates but i juts don't even know how to go about it as i can't find anything online that shows me how to add two integers and subtract from a given total.


i know functions go into the class file, but don't know how to lay out everything in there.

any help is appreciated.
Read this:

http://www.cplusplus.com/doc/tutorial/classes/

There are examples similar to what you want (templates are not needed to form a class)
Topic archived. No new replies allowed.