会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
正义丨元素丨铸星
博客园
首页
新随笔
联系
订阅
管理
2019年12月30日
实验7
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id;
阅读全文
posted @ 2019-12-30 21:27 正义丨元素丨铸星
阅读(97)
评论(2)
推荐(0)
2019年12月24日
实验6
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score;
阅读全文
posted @ 2019-12-24 08:38 正义丨元素丨铸星
阅读(232)
评论(3)
推荐(0)
2019年12月16日
实验5
摘要: // 这个程序用于观察数组中的一组数据元素在内存中是否是连续存放的 // 以及数组元素的直接访问与间接访问 #include <stdio.h> #include <stdlib.h> const int N=3; int main() { int a[N] = {1, 2, 3}; // 定义一维
阅读全文
posted @ 2019-12-16 21:20 正义丨元素丨铸星
阅读(161)
评论(3)
推荐(0)
2019年12月2日
实验4
摘要: //寻找两个整数之间的所有素数(包括这两个整数),把结果保存在数组bb中,函数返回素数的个数。 // 例如,输入6和21,则输出为:7 11 13 17 19。 #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,i
阅读全文
posted @ 2019-12-02 22:23 正义丨元素丨铸星
阅读(112)
评论(1)
推荐(0)
2019年11月18日
实验3
摘要: // 一元二次方程求解 // 重复执行, 直到按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 17:08 正义丨元素丨铸星
阅读(156)
评论(1)
推荐(0)
2019年11月4日
实验2
摘要: #include<stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; // 定义一个数组a,数组中连续存放了字符串常量hello,wor
阅读全文
posted @ 2019-11-04 10:16 正义丨元素丨铸星
阅读(202)
评论(3)
推荐(0)
2019年10月17日
实验1 C语言开发环境使用和数据类型、运算符、表达式
摘要: #include<stdio.h> int main() { printf("hello,mars\n"); return 0; } #include<stdio.h> int product (int,int); int main (void) { int x,y,s; scanf("%d %d",&x,&y); s=product(x,y); printf("The mul is:%d",s)
阅读全文
posted @ 2019-10-17 22:44 正义丨元素丨铸星
阅读(134)
评论(0)
推荐(0)
公告