顶顶顶
- /**************************************************
- * Essential C++ -- Stanley Lippman
- * Addison-Wesley
- * ISBN 0-201-48518-4
- * homepage: www.objectwrite.com
- * email: slippman@objectwrite.com
- *************************************************/
- #include <iostream>
- #include <string>
- using namespace std;
- #include "ch1.h"
- int main()
- {
- user_profile up;
- if ( greet_user( &up ) )
- {
- play_game( &up );
- display_statistics( &up );
- }
- return 0;
- }
本文通过一个具体的C++程序示例介绍了如何使用Stanley Lippman的《Essential C++》一书中提到的方法来实现用户问候、游戏玩法及统计数据展示等功能。此程序包括了基本的C++语法和面向对象编程技巧。

被折叠的 条评论
为什么被折叠?



