摘要: 头文件string.h #include <iostream> #include <string.h>//memset必带这个头文件 using namespace std; int main(){ int a[10][10]; memset(a,0,sizeof(a)); for(int i=0; 阅读全文
posted @ 2020-08-22 15:30 houyz 阅读(954) 评论(0) 推荐(0)
摘要: #include <iostream> #include <iomanip>//小数点必带这个头文件 using namespace std; int main(){ double t = 552.54467; double a = 3.1544545454; int b = 244; cout<< 阅读全文
posted @ 2020-08-22 15:17 houyz 阅读(598) 评论(0) 推荐(0)
摘要: c++中的结构体排序,最常用到的应该就是对结构体的某一个元素进行排序,其他元素与被排序元素关联 比如这样的结构体 typedef struct student{ int id; int math; int chinese; int english; }student; score[3]代表三门成绩, 阅读全文
posted @ 2020-08-22 15:09 houyz 阅读(2176) 评论(0) 推荐(0)
摘要: 012 The Best Rank (25分) To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Progr 阅读全文
posted @ 2020-08-22 11:21 houyz 阅读(150) 评论(0) 推荐(0)