摘要: ``` include include include using namespace std; struct StudentInfo { string name, ID; int grade; }temp, maxa, minb; int main() { int n; cin n; maxa.g 阅读全文
posted @ 2019-02-12 18:26 Cirno-9 阅读(128) 评论(0) 推荐(0) 编辑
摘要: ``` include include include using namespace std; struct StudentInfo { string ID; int testID, formalID; }StudentInfo[1010]; int main() { int n, m, a; c 阅读全文
posted @ 2019-02-12 11:52 Cirno-9 阅读(120) 评论(0) 推荐(0) 编辑
摘要: ``` include using namespace std; int main() { char mp[5] = { 'S', 'H', 'C','D', 'J' }; int n, start[55] = { 0 }, order[55] = { 0 }, renew[55] = { 0 }; 阅读全文
posted @ 2019-02-02 00:17 Cirno-9 阅读(155) 评论(0) 推荐(0) 编辑
摘要: ``` include using namespace std; int main() { int a, b, flag = 0; while (cin a b) { if (flag == 1 && b !=0) cout 阅读全文
posted @ 2019-02-01 22:55 Cirno-9 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ``` #include int game(char A, char B) { if (A == B) return 0; if (A == 'C') { if (B == 'J') return 1; else return -1; } if (A == 'J') { if (B == 'B') return 1; else return -1; } if (A ==... 阅读全文
posted @ 2019-01-30 22:20 Cirno-9 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 给定一系列正整数,请按要求对数字进行分类,并输出以下 5 个数字: A ​1 ​​ = 能被 5 整除的数字中所有偶数的和; A ​2 ​​ = 将被 5 除后余 1 的数字按给出顺序进行交错求和,即计算 n ​1 ​​ −n ​2 ​​ +n ​3 ​​ −n ​4 ​​ ⋯; A ​3 ​​ = 阅读全文
posted @ 2019-01-30 11:17 Cirno-9 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 一个数组A中存有N( 0)个整数,在不允许使用另外数组的前提下,将每个整数循环向右移M(≥0)个位置,即将A中的数据由(A ​0 ​​ A ​1 ​​ ⋯A ​N−1 ​​ )变换为(A ​N−M ​​ ⋯A ​N−1 ​​ A ​0 ​​ A ​1 ​​ ⋯A ​N−M−1 ​​ )(最后M个数循 阅读全文
posted @ 2019-01-30 10:29 Cirno-9 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 要获得一个 C 语言程序的运行时间,常用的方法是调用头文件 time.h,其中提供了 clock() 函数,可以捕捉从程序开始运行到 clock() 被调用时所耗费的时间。这个时间单位是 clock tick,即“时钟打点”。同时还有一个常数 CLK_TCK,给出了机器时钟每秒所走的时钟打点数。于是 阅读全文
posted @ 2019-01-29 22:11 Cirno-9 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1xx 信息提示 这些状态代码表示临时的响应。客户端在收到常规响应之前,应准备接收一个或多个 1xx 响应。 · 100 Continue 初始的请求已经接受,客户应当继续发送请求的其余部分。 · 101 Switching Protocols 服务器将遵从客户的请求转换到另外一种协议 2xx 成功 阅读全文
posted @ 2019-01-12 18:19 Cirno-9 阅读(350) 评论(0) 推荐(0) 编辑
摘要: https://post.smzdm.com/p/713042/ 阅读全文
posted @ 2018-11-30 18:16 Cirno-9 阅读(53) 评论(0) 推荐(0) 编辑