12 2020 档案

摘要:实验任务3 正确,生成 正确,直观可读 实验任务4 子任务1:正确输出,生成,不直观可读 子任务2: #include <stdio.h> #include <stdlib.h> typedef struct student{ int num; char name[20]; int score; } 阅读全文
posted @ 2020-12-27 22:08 包包ovo 阅读(85) 评论(3) 推荐(0)
摘要://1 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; char name[20]; /*学生姓名 */ char subject[20]; /* 阅读全文
posted @ 2020-12-20 20:57 包包ovo 阅读(68) 评论(2) 推荐(0)
摘要://1 #include <stdio.h> const int N=3; int main(){ int a[N]={1,2,3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0;i<N;i++){ printf("%d: %d\n",&a[i],a[ 阅读全文
posted @ 2020-12-16 20:43 包包ovo 阅读(29) 评论(2) 推荐(0)
摘要:任务一 不可以因为返回值只能返回一个 而根有两个。//ex2_1 #include<stdio.h> int func(int, int); int main() { int k=4,m=1,p1,p2; p1 = func(k,m) ; p2 = func(k,m) ; printf("%d,%d 阅读全文
posted @ 2020-12-02 12:14 包包ovo 阅读(96) 评论(2) 推荐(0)