摘要: task1_1 #include<stdio.h> #define N 7 #define M 80 typedef struct { char name[M]; char author[M]; }Book; int main() { Book x[N]={{"《雕塑家》", "斯科特.麦克劳德"} 阅读全文
posted @ 2023-06-14 13:27 贾清萍 阅读(3) 评论(0) 推荐(0) 编辑
摘要: task1 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 char 阅读全文
posted @ 2023-05-31 22:51 贾清萍 阅读(6) 评论(0) 推荐(0) 编辑
摘要: task1 #include<stdio.h> #define N 4 int main() { int x[N] = {1,9,8,4}; int i; int *p; for(i=0;i<N;++i) printf("%d",x[i]); printf("\n"); for(p=x;p<x+N; 阅读全文
posted @ 2023-05-11 13:30 贾清萍 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 源代码1 #include<stdio.h> #define N 4 int main(){ int a[N] = {2,0,2,3}; char b[N] ={'2','0','2','3'}; int i; printf("sizeof(int) = %d\n",sizeof(int)); pr 阅读全文
posted @ 2023-04-18 01:19 贾清萍 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 源程序1 #include<stdio.h> #include<time.h> #include<windows.h> #define N 80 void print_text(int line,int col,char text[]); void print_spaces(int n); void 阅读全文
posted @ 2023-04-05 23:34 贾清萍 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 源程序1 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand(time(0)); f 阅读全文
posted @ 2023-03-22 22:41 贾清萍 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 源程序1 #include<stdio.h> int main() { printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); return 0; } 程序截图1 源程序1.2 #include<stdio.h> int main() { printf( 阅读全文
posted @ 2023-03-06 23:16 贾清萍 阅读(14) 评论(0) 推荐(0) 编辑
摘要: test1:程序源码#include<stdio.h>int main() { printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); return 0; }程序运行截图 程序源码#include<stdio.h> int main() { printf 阅读全文
posted @ 2023-03-06 21:30 贾清萍 阅读(8) 评论(0) 推荐(0) 编辑