摘要: #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num; char name[20]; int score; }STU; int main() { FIL 阅读全文
posted @ 2020-01-01 08:20 实验工具 阅读(119) 评论(1) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; 阅读全文
posted @ 2019-12-24 23:54 实验工具 阅读(120) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> int main() { int a[2][3] = {1,2,3,4,5,6}; int i,j; int *p; // p是指针变量,存放int型数据的地址 int (*q)[3]; // q是指针变量,存放包含有 3 阅读全文
posted @ 2019-12-16 23:13 实验工具 阅读(156) 评论(1) 推荐(0)
摘要: #include <math.h> #include <stdio.h> #include <stdlib.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int main() { double a, b, c; printf( 阅读全文
posted @ 2019-11-28 23:57 实验工具 阅读(140) 评论(1) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: ", n); scanf("%d", &number); max = number; min = nu 阅读全文
posted @ 2019-11-20 00:08 实验工具 阅读(168) 评论(2) 推荐(0)
摘要: #include<stdio.h> int main (){ int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="hello,world!"; int y=3,z=4; printf("%d %d\n",y,z) 阅读全文
posted @ 2019-11-05 23:57 实验工具 阅读(89) 评论(2) 推荐(0)
摘要: #include; int main() { int x; printf("输入一个整数:\n"); scanf ("%d,&x"); if("x%2==1") printf("是奇数"); else printf("是偶数"); return 0; } #include; int main() { int days ; printf("输入一个整数:\n")... 阅读全文
posted @ 2019-10-20 23:37 实验工具 阅读(101) 评论(0) 推荐(0)