Directory Listing | |
---|---|
misc
|
|
circle.cpp
|
|
class_demonstration.cpp
|
|
layout.cpp
|
|
simple_class_example.cpp
|
|
student_class_example.cpp
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//Class Declarations
class calc {
public:
//Getters
//Get Result
//Setters
//Set Left Operand
//Set Right Operand
//Functions for Add, Subtract, etc.
private:
//Variables
//Left Operand, Right Operand, and Result as "double"
};
int main() {
//Do something awesome
}
//Function definitions here
void calc::function() {
//Stuff
}