会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Nixmout
博客园
首页
新随笔
联系
订阅
管理
2022年6月8日
实验6
摘要: 四、实验结论: 1. task1_1.c 1 #include <stdio.h> 2 #define N 4 3 4 int main() 5 { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 int *p; 9 10 // 方式1:通过数组名和下标遍历输出数组元素
阅读全文
posted @ 2022-06-08 20:21 Nixmout
阅读(27)
评论(1)
推荐(0)
2022年6月6日
实验五
摘要: 四、实验结论 1. task1_1.c 1 #include <stdio.h> 2 3 #define N 5 4 #define M 80 5 6 typedef struct 7 { 8 char name[M]; 9 char author[M]; 10 }BOOK; 11 12 int m
阅读全文
posted @ 2022-06-06 15:26 Nixmout
阅读(23)
评论(1)
推荐(0)
2022年5月9日
实验4 数组
摘要: 四、实验结论: 1、task1_1.c 1 #include<stdio.h> 2 #define N 4 3 4 int main() 5 { 6 int a[N]={2,0,2,2}; 7 char b[N]={'2','0','2','2'}; 8 int i; 9 10 printf("si
阅读全文
posted @ 2022-05-09 19:07 Nixmout
阅读(18)
评论(1)
推荐(0)
2022年4月25日
实验3 函数
摘要: 四、实验结论: 1.实验任务1: task1.c 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #include<windows.h> 5 #define N 80 6 7 void printText(int Line,
阅读全文
posted @ 2022-04-25 11:05 Nixmout
阅读(38)
评论(1)
推荐(0)
2022年4月14日
实验2 C语言控制语句应用编程
摘要: 四、实验结论: task1: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 7 int main() /*随机选取 5个2018届~2021届的学生学号*/ 8 { 9 int grade,
阅读全文
posted @ 2022-04-14 01:04 Nixmout
阅读(84)
评论(1)
推荐(0)
2022年3月24日
实验1 C语言开发环境使用和编程初体验
摘要: 四、实验结论 1. 实验任务1 //task1_1.c 1 #include<stdio.h> 2 int main() 3 { 4 int i; 5 6 for(i=1;i<=2;i++) 7 { 8 printf(" O \n"); 9 printf("<H>\n"); 10 printf("I
阅读全文
posted @ 2022-03-24 21:50 Nixmout
阅读(137)
评论(3)
推荐(0)
2022年3月21日
实验0 C语言开发环境使用和数据类型、运算符、表达式
摘要: #include<stdio.h> int main(){ char ch; ch=getchar(); putchar(ch); printf("%c",ch); return 0;}
阅读全文
posted @ 2022-03-21 21:53 Nixmout
阅读(32)
评论(0)
推荐(0)
公告