Essential C++ 第一章,猜数代码分析ch1_main.cpp + 知识点总结

来源:互联网 发布:centos 7中文 编辑:程序博客网 时间:2024/06/14 21:39
 顶顶顶
  1. /**************************************************
  2.  * Essential C++ -- Stanley Lippman
  3.  * Addison-Wesley 
  4.  * ISBN 0-201-48518-4
  5.  * homepage: www.objectwrite.com
  6.  * email: slippman@objectwrite.com
  7.  *************************************************/
  8. #include <iostream>
  9. #include <string>
  10. using namespace std;
  11. #include "ch1.h"
  12. int main()
  13. {
  14.     user_profile up;
  15.     if ( greet_user( &up ) )
  16.     {
  17.          play_game( &up );
  18.          display_statistics( &up );
  19.     }
  20.     return 0;
  21. }

原创粉丝点击