文件名称:Season.cpp
介绍说明--下载内容均来自于网络,请自行研究使用
此程序可以根据所输入的数字1-4或者字符 SPR -“Win”来输出相应的季节并且可以选择输入功能。-This task asks student to write a program with a class. It should initialize a class called season. In this class, there will be an integer variable to represent a season. For instance, 1 represents Spring, 2 represents Summer. Also, there will be a constructor to set the season using the first three letters in the name of the season. For instance, “spr” represents spring. There exist some requirements: a default constructor shall be included in the code, two input functions namely read the season as integer and letters shall be in the code. Also, there should be an output function that outputs the season as whole names. Eventually, after the season is displayed, the season next to it should also be displayed on the screen of type season.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Season.cpp
__MACOSX
........\._Season.cpp