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

📄 phrase.inl

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

#include <string.h>
                              
inline phrase::phrase(void)
{
   strcpy(noun, "");
   strcpy(verb, "");
   strcpy(full_phrase, "(No text yet)");
}

inline void phrase::set_noun(char *in_noun)
{
   strcpy(noun, in_noun);
}

inline void phrase::set_verb(char *in_verb)
{
   strcpy(verb, in_verb);
}

inline char *phrase::get_phrase(void)
{
   strcpy(full_phrase, verb);
   strcat(full_phrase, " the ");
   strcat(full_phrase, noun);
   return full_phrase;
}



// Result of execution
//
// (This file cannot be executed)
                               

⌨️ 快捷键说明

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