3.7.1 创建程序

2013-10-07 14:43:50 · 作者: · 浏览: 62

3.7.1  创建程序

像往常一样,程序以注释和需要的头文件开始。从Course Technology网站(www.courseptr. com/downloads)或本书合作网站(http://www.tupwk.com.cn/downpage)上可以下载到该程序的代码。程序位于Chapter 3文件夹中,文件名为word_jumble.cpp。

  1. // Word Jumble  
  2. // The classic word jumble game where the player can ask for a hint  
  3. #include <iostream> 
  4. #include <string> 
  5. #include <cstdlib> 
  6. #include <ctime> 
  7. using namespace std;