Guest_imported
New member
- Jan 1, 1970
- 0
Hi I have a big problem with classes. I am wondering if someone could just show me a simple example of how to use a class and implement it. Let's say this..You want to write a header file (.h) with the class information. Then you want to implement the .h file (where the class is declared) in a .cpp file or .cc file (the main portion of the program) Let's say you need two variables which are declared in the class int a, int b. and these two integers are than CIN my the user in the main portion of the program. The two numbers are then added, subtracted and multiplied together in a seperate function, let's call it double MathPortion. Thank you