Skip to content

Commit 5efd2f6

Browse files
committed
refactor code
1 parent 66d0a1f commit 5efd2f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

006_functions.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
#include<iostream>
22

3-
long int add (int nVar1, int nVar2) {
3+
long int Add (int nVar1, int nVar2) {
44
return nVar1+nVar2;
55
}
66

7-
int substract (int nVar1, int nVar2){
7+
int Substract (int nVar1, int nVar2){
88
return nVar1-nVar2;
99
}
1010

11-
void say_hello(void){
11+
void SayHello(void){
1212
std::cout << "Hello, I'm a Function/Method." << '\n';
1313
}
1414

1515
int main(int argc, char const *argv[]) {
1616
long int lnResult;
17-
lnResult = add(5,2);
17+
lnResult = Add(5,2);
1818
std::cout << "Addition: " << lnResult << '\n';
1919

20-
std::cout << "Substraction: " << substract(10,7) << '\n';
20+
std::cout << "Substraction: " << Substract(10,7) << '\n';
2121

22-
say_hello();
22+
SayHello();
2323

2424
return EXIT_SUCCESS;
2525
}

0 commit comments

Comments
 (0)