• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
lzb0811
博客园 首页 新随笔 联系 订阅 订阅 管理

2022年12月29日

6
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> int main(){ FILE *fp; fp=fopen("data4.txt","r"); char ch='a'; int i=0; do { ch=fgetc(fp); i 阅读全文
posted @ 2022-12-29 20:13 李治伯 阅读(169) 评论(0) 推荐(0)
 
5
摘要: #include <stdio.h>#include <string.h>#define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student {int id; // 学号char name[20]; // 姓名char subject[20 阅读全文
posted @ 2022-12-29 20:09 李治伯 阅读(160) 评论(0) 推荐(0)
 
 

2022年11月29日

4
摘要: 一 #include<stdio.h>#define N 4int main() { int a[N] = {1, 9, 8, 4};char b[N] = {'1', '9', '8', '4'};int i;printf("sizeof(int) = %d\n", sizeof(int));pr 阅读全文
posted @ 2022-11-29 20:14 李治伯 阅读(8) 评论(0) 推荐(0)
 
 

2022年11月6日

task3
摘要: 1. #include<stdio.h>#include<time.h>#include<stdlib.h>#include<windows.h>#define N 80void print_text(int line, int col, char text[]); void print_space 阅读全文
posted @ 2022-11-06 15:06 李治伯 阅读(28) 评论(0) 推荐(0)
 
 

2022年10月22日

task2
摘要: 任务一 #include<stdio.h>#include<stdlib.h>#include<time.h>#define N 5int main(){ int number,i; srand (time(0)); for(i=1;i<N;++i){ number=rand()%500+1; pr 阅读全文
posted @ 2022-10-22 21:33 李治伯 阅读(10) 评论(0) 推荐(0)
 
 

2022年10月13日

test1
摘要: 任务一 #include <stdio.h>int main (){ printf(" O\n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I I \n"); return 0;} #i 阅读全文
posted @ 2022-10-13 11:00 李治伯 阅读(211) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3