// page97.cpp : 定义控制台应用程序的入口点。
//C++ 面向对象程序设计
// 该程序用于提供家庭作业信息
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int choice;
do
{
cout << endl
<< " Choose 1 to see the next homework assignment .\n"
<< " Choose 2 for your grade on the last assignment .\n"
<< " Choose 3 for assignment hints .\n"
<< " Choose 4 to exit this program.\n"
<< " Enter your choice1and press Return: ";
cin >> choice;
switch(choice)
{
case 1:
//在此放置用于显示下一个作业的代码
cout << "你好";
break;
case 2:
//在此放置要求提供学生号并给出相应成绩的代码
cout << "我好";
break;
case 3:
//在此放置用于显示作业提示代码
cout << "大家好";
break;
case 4:
cout << " End of Pregream .\n";
break;
default:
cout << "Not a vaild choice.\n "
<< " Choose again .\n";
}
}while (choice != 4);
cin >> choice;
return 0;
}