diff --git a/oop/class_object.cpp b/oop/class_object.cpp new file mode 100644 index 0000000..5219e44 --- /dev/null +++ b/oop/class_object.cpp @@ -0,0 +1,33 @@ +#include +#include +using namespace std; + +class Inventories{ + public : + string goods; + string description; + int amount; + + void Result_Inventories(){ + cout << "This is program of repository \n"; + cout << "Input name of goods : "; + cin >> goods; + cout << "Input of description of goods : "; + cin >> description; + cout << "Input total of good : "; + cin >> amount; + + cout << "The result is : " << goods << ", " << description << ", " << amount << "\n"; + }; +}; + +// make a main program +int main (){ + Inventories result; + + // call a function + result.Result_Inventories(); + return 0; +} + + diff --git a/oop/class_object.exe b/oop/class_object.exe new file mode 100644 index 0000000..dce626d Binary files /dev/null and b/oop/class_object.exe differ