C++上机
文章平均质量分 61
天蓝风暖
努力一定会有回报
展开
-
输入输出学生信息和成绩 利用结构体
#include #includeusing namespace std;struct Student{ char num[13]; char name[10]; int cpp; int math; int english; double grade; double average;};const int N=3;int main( ){ int i, j ;原创 2013-04-25 21:03:44 · 2782 阅读 · 1 评论 -
第一周上机 结构体日期
#include using namespace std;struct Date{ int year; int month; int day;}date;int main(){ cout<<"input year,month,day:"; cin>>date.year>>date.month>>date.day; int days; int a;//若为闰年a为1,不是闰原创 2013-04-18 22:31:50 · 605 阅读 · 0 评论 -
第一周上机
#include using namespace std;int f( int m, int n,int k);struct Date{ int year; int month; int day;};int main(){ Date date1,date2; int days1,days2; int sum=0,s;//s为两人生日相差天数原创 2013-04-21 20:54:47 · 679 阅读 · 0 评论 -
存档,清空,保存
文档类.h文件// SaveDoc.h : interface of the CSaveDoc class///////////////////////////////////////////////////////////////////////////////#if !defined(AFX_SAVEDOC_H__F46718E5_7FE3_4F02_B33E_41A71E原创 2013-07-18 18:58:08 · 794 阅读 · 0 评论 -
计数器
视图类的.h文件// CountView.h : interface of the CCountView class///////////////////////////////////////////////////////////////////////////////#if !defined(AFX_COUNTVIEW_H__F8822A94_E15E_4B73_8079_E原创 2013-07-18 18:16:50 · 625 阅读 · 0 评论 -
思维导图
原创 2013-08-01 23:22:37 · 545 阅读 · 0 评论