摘要:
实验3: 是;是;是 实验四:是;是;否 #include<stdio.h> #include<stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; }STU; int main(){ F 阅读全文
摘要:
// P280例8.15 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入 阅读全文
摘要:
#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] 阅读全文
摘要:
实验一:不能,return只能返回一个数 实验二: #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\n",p1, 阅读全文
摘要:
恢复内容开始 #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% 阅读全文
摘要:
#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",d,e,f); return 0; } d=5/7*1 阅读全文
摘要:
#include<stdio.h> int main(){ printf("hello,C\n"); printf("202083290270\n"); printf("hello2020\n"); return 0; } #include<stdio.h> int main(){ while(0) 阅读全文
摘要:
#include<stdio.h> int main(){ printf("hello,C\n"); printf("202083290270\n"); printf("hello2020\n"); return 0; } #include<stdio.h> int main(){ while(0) 阅读全文