⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usephras.cpp

📁 Since the field of object oriented programming is probably new to you, you will find that there is a
💻 CPP
字号:
                             // Chapter 6 - Program 14 - USEPHRAS.CPP

#include <iostream.h>
#include "phrase.h"

int main()
{
phrase my_text;

   cout << "The phrase is ---> " << my_text.get_phrase() << "\n";
   my_text.set_noun("baseball");
   cout << "The phrase is ---> " << my_text.get_phrase() << "\n";
   my_text.set_verb("Throw");
   cout << "The phrase is ---> " << my_text.get_phrase() << "\n";
   my_text.set_noun("game");
   cout << "The phrase is ---> " << my_text.get_phrase() << "\n";

   return 0;
}



// Result of execution
//
// The phrase is --->  the
// The phrase is --->  the baseball
// The phrase is ---> Throw the baseball
// The phrase is ---> Throw the game

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -