会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
努力爬行的小虫子
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
2
3
4
5
6
7
8
9
···
11
下一页
2021年1月2日
python 基础知识
摘要: 一、数学 1、次方 2^3 代码:2**3 2、取整 9//2 =>4 二、赋值 1、可以连续赋值,与C语言不一样 三、循环 1、while循环 2、for循环 变量作为迭代器的作用 结果: for i in range(1,3) print(i) range(1,3) =>[1,3) =>1,2
阅读全文
posted @ 2021-01-02 21:25 努力爬行的小虫子
阅读(71)
评论(0)
推荐(0)
编辑
2020年12月16日
2019年真题
摘要: 三、阅读程序题 发现参考答案不对,机试了一下,果真不对! 1 #include <stdio.h> 2 3 4 void swap(int *a,int *b){ 5 int *t; 6 t=a; 7 a=b; 8 b=t; 9 } 10 int main() 11 { 12 int i=2,j=5
阅读全文
posted @ 2020-12-16 14:07 努力爬行的小虫子
阅读(24)
评论(0)
推荐(0)
编辑
2018年真题
摘要: 四、改错题 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 5 void fun(long s,long *t){ 6 int d; 7 long s1=1; 8 *t=0; 9 while(s>0){ 10 d=s%10; 11 if(d%2==0){
阅读全文
posted @ 2020-12-16 12:21 努力爬行的小虫子
阅读(32)
评论(0)
推荐(0)
编辑
2020年12月12日
2015年真题
摘要: 五、编程题(共55分)1.请编程实现:计算并输出下列多项式值:s=1+1/(1+2)+1(1+2+3)+....+1/(1+2+3+..+50) (7分) 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main() 5 { 6 float su
阅读全文
posted @ 2020-12-12 19:03 努力爬行的小虫子
阅读(29)
评论(0)
推荐(0)
编辑
2020年12月7日
2011年真题
摘要: 一、选择题 9、 #include <stdio.h> int main() { int a=1,b=3,c=0,d=7,e=9,f=2,g=4,h=6,i=8,j=0,k=10; a+=++b*c+--e/f-i%d?c--&++i?++b||--d:!j==1:k+++a; printf("a=
阅读全文
posted @ 2020-12-07 21:07 努力爬行的小虫子
阅读(26)
评论(0)
推荐(0)
编辑
2020年12月5日
2010年真题
摘要: 一、单项选择题 4、强制类型转换格式如下: (type_name) expression不能写成float(1/2)!而应该是(float)(1/2) 5、我就觉得题目答案错了,果真不对。。。应该说选项中就没有正确答案 17、 1 #include <stdio.h> 2 #include <std
阅读全文
posted @ 2020-12-05 22:27 努力爬行的小虫子
阅读(27)
评论(0)
推荐(0)
编辑
2020年12月3日
2009年真题
摘要: 五、编程题 1、统计一个字符串中字母、数字和空格的个数 要求:在函数中输入和输出;用一个函数指针;用函数指针调用被调函数 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define M 100 4 void count(int *,int *,int *
阅读全文
posted @ 2020-12-03 22:02 努力爬行的小虫子
阅读(15)
评论(0)
推荐(0)
编辑
2008年真题
摘要: 五、编程题 五、编程题(共40分)有10个学生5门课,按学生平均分由画到低的顺序输出学生学号、各门课的成绩以及平均分。1.第-种方法: (15分)①在主函数中输入学号和成绩,分别用数组存放;②自定义一个函数计算平均分、排序并输出结果,用数组指针进行处理。 1 #include <stdio.h> 2
阅读全文
posted @ 2020-12-03 15:37 努力爬行的小虫子
阅读(22)
评论(0)
推荐(0)
编辑
2020年11月28日
链表排序
摘要: 1、单链表冒泡排序(从小到大) 2007年考到,前几年也考到过 仅交换数值。这里的一个出彩点就是关于指针t的,在这之前我也实现过,但是当时没想到用指针t就解决了 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define LEN sizeof(struc
阅读全文
posted @ 2020-11-28 16:47 努力爬行的小虫子
阅读(21)
评论(0)
推荐(0)
编辑
2007年真题
摘要: 二、 3、 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 union ww{ 5 char s[4]; 6 int k; 7 }; 8 9 struct node{ 10 int a,*b; 11 union ww c; 12 }; 13 14 int
阅读全文
posted @ 2020-11-28 16:15 努力爬行的小虫子
阅读(61)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
9
···
11
下一页