Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using std::cout;
- using std::endl;
- using std::cin;
- using std::system;
- using std::string;
- using std::getline;
- int Number1;
- int Number2;
- int Result;
- class RandomShit
- {
- public:
- void displayMessage()
- {
- cout << "People dont know how to explain ";
- }
- void displayMyMessage()
- {
- cout << "C++. It's very easy in small bits!" << endl;
- }
- void multiplyNumbers()
- {
- Result = (Number1*Number2);
- cout << Result << endl;
- }
- };
- class MoreShitCL
- {
- public:
- void
- IWantTalkAbout()
- {
- cout << "I want to talk about C++! What would you like to talk about?\n";
- }
- void TalkAbout()
- {
- }
- int main()
- {
- {
- RandomShit myRandomShit;
- myRandomShit.displayMessage();
- myRandomShit.displayMyMessage();
- cout << endl;
- cout << "Enter 2 numbers and i will multiply that shit! \n";
- cin >> Number1 >> Number2;
- myRandomShit.multiplyNumbers();
- }
- {
- getline (cin, TalkAbout);
- cout << endl;
- }
- {
- system ("pause>nul");
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement