2023年6月8日
摘要: 4 #include<stdio.h> #include<stdlib.h> int main(int argc,char *argv[]) {char ch; int count=0; FILE *fp; fp = fopen("data4.txt", "r"); if (fp == NULL) 阅读全文
posted @ 2023-06-08 20:41 楼璟 阅读(7) 评论(0) 推荐(0) 编辑
  2023年5月5日
摘要: 1.1 #include <stdio.h> #include <stdlib.h> #define N 4 int main(){ int x[N]={1, 9, 8, 4}; int i; int *p; //方式1:通过数组名和下标遍历输出数组元素 for (i = 0; i < N;++i) 阅读全文
posted @ 2023-05-05 21:43 楼璟 阅读(8) 评论(0) 推荐(0) 编辑
  2023年4月19日
摘要: 任务1 #include <stdio.h> #include <stdlib.h> #define N 4 int main() { int a[N]={2, 0, 2, 3}; char b[N]={'2','O','2','3'}; int i; printf("sizeof(int)= %d 阅读全文
posted @ 2023-04-19 23:07 楼璟 阅读(6) 评论(0) 推荐(0) 编辑
  2023年4月5日
摘要: 任务一 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_spaces(int n); void print_text(int line,int 阅读全文
posted @ 2023-04-05 23:55 楼璟 阅读(10) 评论(0) 推荐(0) 编辑
  2023年3月17日
摘要: 任务一 #include <stdio.h> #include <math.h> #include <stdlib.h> int main() { double x,ans; while(scanf("%if",&x)!=EOF) { printf("202283300%04d\n",number) 阅读全文
posted @ 2023-03-17 23:08 楼璟 阅读(14) 评论(0) 推荐(0) 编辑
  2023年3月3日
摘要: 任务一#include <stdlib.h> #include <stdio.h> int main() { printf(" 0"" 0\n"); printf("<H>""<H>\n"); printf("I I""I I\n"); system("pause"); return 0; } #i 阅读全文
posted @ 2023-03-03 23:34 楼璟 阅读(17) 评论(0) 推荐(0) 编辑