diff --git a/a.out b/a.out new file mode 100755 index 0000000..cc38265 Binary files /dev/null and b/a.out differ diff --git a/arithmetic.cpp b/arithmetic.cpp new file mode 100644 index 0000000..4fa3aa2 --- /dev/null +++ b/arithmetic.cpp @@ -0,0 +1,6 @@ +#include "arithmetic.h" +int add(int a, int b) +{ + int c = a+b; + return c; +} diff --git a/arithmetic.h b/arithmetic.h new file mode 100644 index 0000000..c718493 --- /dev/null +++ b/arithmetic.h @@ -0,0 +1 @@ +int add(int, int); diff --git a/arithmetic.o b/arithmetic.o new file mode 100644 index 0000000..d6af735 Binary files /dev/null and b/arithmetic.o differ diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..3e3c2e7 --- /dev/null +++ b/main.cpp @@ -0,0 +1,9 @@ +#include +#include "arithmetic.h" + +int main() +{ + std::cout<<"Hello world!"<