会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
海鸥与羽
博客园
园子
首页
新随笔
联系
管理
订阅
2019年12月29日
实验7
摘要: #include <stdio.h> #include <stdlib.h> int main() { FILE *fin, *fout; // 定义文件类型指针 int ch; fin = fopen("file1.txt", "r"); // 以只读文本方式打开文件file1.txt if (f
阅读全文
posted @ 2019-12-29 13:13 海鸥与羽
阅读(86)
评论(0)
推荐(0)
2019年12月22日
实验六
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; typedef struct student { long no; char name[20]; int score; }STU; void input(STU s[], int n); in
阅读全文
posted @ 2019-12-22 15:16 海鸥与羽
阅读(180)
评论(2)
推荐(0)
1
摘要: 1
阅读全文
posted @ 2019-12-22 15:13 海鸥与羽
阅读(56)
评论(0)
推荐(0)
2019年12月16日
实验五
摘要: // Õâ¸ö³ÌÐòÓÃÓÚ¹Û²ìÊý×éÖеÄÒ»×éÊý¾ÝÔªËØÔÚÄÚ´æÖÐÊÇ·ñÊ
阅读全文
posted @ 2019-12-16 11:13 海鸥与羽
阅读(205)
评论(1)
推荐(0)
2019年12月1日
实验4
摘要: #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,int m,int bb[N]) { int i,j,k=0,flag; for(j=n;j<=m;j++) { flag=1; for(i=2;i<j;i++)
阅读全文
posted @ 2019-12-01 12:18 海鸥与羽
阅读(101)
评论(3)
推荐(0)
2019年11月18日
实验三
摘要: // 一元二次方程求解 // 重复执行, 直到按Ctrl+D或Ctrl+E结束 // #include <math.h> #include <stdio.h> #include <stdlib.h> int main() { float a, b, c, x1, x2; float delta, r
阅读全文
posted @ 2019-11-18 22:17 海鸥与羽
阅读(81)
评论(1)
推荐(0)
2019年11月4日
实验二
摘要: #include int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; // 定义一个数组a,数组中连续存放了字符串常量hello,world! int y=3, z=4; printf("%d...
阅读全文
posted @ 2019-11-04 11:16 海鸥与羽
阅读(96)
评论(3)
推荐(0)
2019年10月20日
实验1 C语言开发环境使用和数据类型,运算符,表达式
摘要: //自加、自减运算 #include<stdio.h> int main() { int a=6,b=9; printf("a++=%d\n",a++); printf("a=%d\n",a); printf("++b=%d\n",++b); printf("b=%d\n",b); return 0; } //整数相除 #include<stdio.h> int main() { int a=11
阅读全文
posted @ 2019-10-20 21:54 海鸥与羽
阅读(139)
评论(0)
推荐(0)
公告
点击右上角即可分享