摘要: 实验任务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 阅读(84) 评论(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 阅读(62) 评论(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 阅读(27) 评论(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 阅读(93) 评论(2) 推荐(0)
摘要: //任务1 #include <math.h> #include <stdio.h> int main(){ float a,b,c,x1,x2; float delta,real,imag; printf("Enter a,b,c:"); while(scanf("%f%f%f",&a,&b,&c 阅读全文
posted @ 2020-11-18 14:10 包包ovo 阅读(153) 评论(2) 推荐(0)
摘要: //ex1.cpp #include <stdio.h> int main() { int a = 5, b = 7, c = 100, d, e, f; d = a / b * c; e = a * c / b; f = c / b * a; printf("d=%d,e=%d,f=%d\n", 阅读全文
posted @ 2020-11-02 17:37 包包ovo 阅读(95) 评论(3) 推荐(0)
摘要: //任务1#include<stdio.h> int main() { printf("my stuno is: 202083290263\n"); printf("2020 i hate u!\n"); return 0; } //任务2#include<stdio.h> int main() { 阅读全文
posted @ 2020-10-15 17:21 包包ovo 阅读(76) 评论(2) 推荐(0)
摘要: #include<stdio.h>int main(){ printf("my stuno is:202093290263\n"); printf("2020 I love u!"); return 0;} #include<stdio.h>int main(){ while(1) printf(" 阅读全文
posted @ 2020-10-15 15:10 包包ovo 阅读(68) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/nickrushb/ 阅读全文
posted @ 2020-10-13 15:19 包包ovo 阅读(65) 评论(0) 推荐(0)