Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using std::cout;
  4. using std::endl;
  5. using std::cin;
  6. using std::system;
  7. using std::string;
  8. using std::getline;
  9.  
  10. int Number1;
  11. int Number2;
  12. int Result;
  13.  
  14. class RandomShit
  15. {
  16. public:
  17.  
  18. void displayMessage()
  19. {
  20. cout << "People dont know how to explain ";
  21. }
  22. void displayMyMessage()
  23. {
  24. cout << "C++. It's very easy in small bits!" << endl;
  25. }
  26. void multiplyNumbers()
  27. {
  28. Result = (Number1*Number2);
  29. cout << Result << endl;
  30. }
  31.  
  32. };
  33. class MoreShitCL
  34. {
  35. public:
  36. void
  37. IWantTalkAbout()
  38. {
  39. cout << "I want to talk about C++! What would you like to talk about?\n";
  40. }
  41. void TalkAbout()
  42. {
  43.  
  44. }
  45.  
  46. int main()
  47. {
  48.  
  49. {
  50. RandomShit myRandomShit;
  51. myRandomShit.displayMessage();
  52. myRandomShit.displayMyMessage();
  53. cout << endl;
  54. cout << "Enter 2 numbers and i will multiply that shit! \n";
  55. cin >> Number1 >> Number2;
  56. myRandomShit.multiplyNumbers();
  57. }
  58.  
  59. {
  60. getline (cin, TalkAbout);
  61. cout << endl;
  62. }
  63.  
  64. {
  65. system ("pause>nul");
  66. return 0;
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement