diff --git a/CM2010 Software Design and Development/Topic 3/7.2.1/a.exe b/CM2010 Software Design and Development/Topic 3/7.2.1/a.exe new file mode 100644 index 0000000..e216432 Binary files /dev/null and b/CM2010 Software Design and Development/Topic 3/7.2.1/a.exe differ diff --git a/CM2010 Software Design and Development/Topic 3/7.2.1/main.cpp b/CM2010 Software Design and Development/Topic 3/7.2.1/main.cpp new file mode 100644 index 0000000..cb3deef --- /dev/null +++ b/CM2010 Software Design and Development/Topic 3/7.2.1/main.cpp @@ -0,0 +1,45 @@ +#include + +class Thing +{ + public: + Thing(float x, float y) + { + this->y = x; + this->y = y; + } + float getX() + { + return this->x; + } + private: + float x; + float y; +}; + +int addne(int input) +{ + return input + 1; +} + +int main() +{ + int x = 10; + float myFloat = 10.0f; + int myInts[5] = {2, 4, 6, 8, 10}; + + myInts[0] = 25; + + for(int i=0; i