摘要:
https://pintia.cn/problem-sets/12/problems/350 1 int sum(int n) 2 { 3 if (n <= 0) 4 { 5 return 0; 6 } 7 else 8 { 9 return n + sum(n - 1); 10 } 11 } 阅读全文
摘要:
https://pintia.cn/problem-sets/12/problems/347 1 #include <stdio.h> 2 #include <stdlib.h> 3 struct friend 4 { 5 char name[11]; 6 int birthday; 7 char 阅读全文
摘要:
https://pintia.cn/problem-sets/12/problems/349 1 int set_grade(struct student *p, int n) 2 { 3 int i, count; 4 5 count = 0; 6 for (i = 0; i < n; i++) 阅读全文
摘要:
https://pintia.cn/problem-sets/12/problems/348 1 struct complex multiply(struct complex x, struct complex y) 2 { 3 struct complex ret; 4 5 ret.real = 阅读全文
摘要:
1 /*修改学生成绩,结构指针作为函数参数*/ 2 #include <stdio.h> 3 struct student 4 { 5 int num; 6 char name[10]; 7 int computer, english, math; 8 double average; 9 }; 10 阅读全文
摘要:
1 #include <stdio.h> 2 int main(void) 3 { 4 int a; 5 char c; 6 7 scanf("%d", &a); 8 c = getchar(); 9 putchar(c); 10 11 return 0; 12 } 输入1,然后回车 整数1读入到变 阅读全文