随笔分类 -  c++习题

摘要://03、编写一个程序,要求从键盘输入四科成绩,求出该生最高成绩与最低成绩。#include<iostream>using namespace std; int main(void){ int nGread[6] = {0}; cout << "请输入四科成绩" << endl; for (int 阅读全文
posted @ 2020-02-27 17:41 等闲 阅读(1044) 评论(0) 推荐(0)
摘要:1 #include<iostream> 2 3 using namespace std; 4 5 int main(void) 6 { 7 // 输入任意一个年份判断其是否为闰年 8 int iYear = 0; 9 cout << "请输入年份" << endl; 10 cin >> iYear 阅读全文
posted @ 2020-02-27 16:35 等闲 阅读(345) 评论(0) 推荐(0)