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






努力爬行的小虫子

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  真题

1 2 下一页

还剩1个月,慢慢磨吧,我还真不信敌人很强,哈哈哈哈
 
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 努力爬行的小虫子 阅读(26) 评论(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 努力爬行的小虫子 阅读(37) 评论(0) 推荐(0)
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 努力爬行的小虫子 阅读(34) 评论(0) 推荐(0)
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 努力爬行的小虫子 阅读(29) 评论(0) 推荐(0)
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 努力爬行的小虫子 阅读(34) 评论(0) 推荐(0)
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 努力爬行的小虫子 阅读(16) 评论(0) 推荐(0)
2008年真题
摘要:五、编程题 五、编程题(共40分)有10个学生5门课,按学生平均分由画到低的顺序输出学生学号、各门课的成绩以及平均分。1.第-种方法: (15分)①在主函数中输入学号和成绩,分别用数组存放;②自定义一个函数计算平均分、排序并输出结果,用数组指针进行处理。 1 #include <stdio.h> 2 阅读全文
posted @ 2020-12-03 15:37 努力爬行的小虫子 阅读(26) 评论(0) 推荐(0)
链表排序
摘要:1、单链表冒泡排序(从小到大) 2007年考到,前几年也考到过 仅交换数值。这里的一个出彩点就是关于指针t的,在这之前我也实现过,但是当时没想到用指针t就解决了 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define LEN sizeof(struc 阅读全文
posted @ 2020-11-28 16:47 努力爬行的小虫子 阅读(26) 评论(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 努力爬行的小虫子 阅读(65) 评论(0) 推荐(0)
转义字符以及优先级列表
摘要:优先级方面可以看这个来自:https://www.zhihu.com/tardis/sogou/art/53147212 阅读全文
posted @ 2020-11-27 20:50 努力爬行的小虫子 阅读(55) 评论(0) 推荐(0)
2006年真题
摘要:一、选择题 2、对于static int a[3][4];则数组a中各元素在程序的编译阶段得到初值0. 6、int i=0,j=1,*p=&i,*q=&j;问错误的语句是( ) A) i=*&q; B) p=&*&i; C) *p++; D) i=*&j; 总结方法:从里到外层层剥离,碰到*&或者& 阅读全文
posted @ 2020-11-27 16:00 努力爬行的小虫子 阅读(40) 评论(0) 推荐(0)
2005年真题
摘要:一、 1 #include<stdio.h> 2 3 int main(){ 4 int *p,k=10; 5 double *q,f=5.6; 6 p=&k; 7 q=&f; 8 printf("%g\n",*q); 9 printf("%d\n",*p); 10 p=(int *)q; 11 p 阅读全文
posted @ 2020-11-25 16:02 努力爬行的小虫子 阅读(35) 评论(0) 推荐(0)
单链表--头插法和尾插法
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef int ElemType ; 5 6 typedef struct LNode{ 7 ElemType data; 8 struct LNode *next; 9 }LinkList; 10 阅读全文
posted @ 2020-11-24 15:05 努力爬行的小虫子 阅读(118) 评论(0) 推荐(0)
2004年真题
摘要:2004年真题 二、 6、 1 #include <iostream> 2 3 #include<stdio.h> 4 #include<stdlib.h> 5 #include<string.h> 6 #include<math.h> 7 #define SLEN 20 8 #define M 5 阅读全文
posted @ 2020-11-23 21:26 努力爬行的小虫子 阅读(44) 评论(0) 推荐(0)
二维字符数组赋初值需要注意的事项
摘要:1、 上述图片的定义是不对的,会报错: 为什么?因为"ABC"看起来是3个字符实际上是4个字符,还有一个'\0'作为结束符,这个字符是系统自动加上的。 所以再定义一个二维数组时,列应该定义的长度为最大字符串的有效字符+1. 阅读全文
posted @ 2020-11-23 21:13 努力爬行的小虫子 阅读(135) 评论(0) 推荐(0)
未解决的题目
摘要:2003年编程题3(2020/11/24号已解决) 2004年编程题1 程序填空题2 都是链表排序题型(2020/11/26号已解决) 2006年三、程序填空题 四、程序改错题 未验证猜想 五、编程题 阅读全文
posted @ 2020-11-23 19:03 努力爬行的小虫子 阅读(20) 评论(0) 推荐(0)
2003年真题
摘要:2003年真题 二、 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 5 int dec(int a[],int n){ 6 if(n<=1) 7 return 1; 8 if(a[0]<a[1])//只要子序列第一个数和第二个数为非递减数列则说明该数列 阅读全文
posted @ 2020-11-22 22:12 努力爬行的小虫子 阅读(32) 评论(0) 推荐(0)
char *s1 = "hello"和char s2[]="world"的区别
摘要:char *s1 = "hello"和char s2[]="world"的区别 链接:http://www.voidcn.com/article/p-mionkggw-bkb.html 这两个字符串存储在一片连续的存储空间中,当时纳闷怎么一到*s1=*s2就挂了,查了一下原来是这样的,也即是说cha 阅读全文
posted @ 2020-11-22 21:02 努力爬行的小虫子 阅读(321) 评论(0) 推荐(0)
递归
摘要:递归专题 1、求n个数的子序列 设这n个数为1,2,3 则为子序列如下: 恰好构成一个满二叉树 则只需深度遍历满二叉树,访问时把路径记录下来即可 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define MAXN 20 4 5 int path[MAX 阅读全文
posted @ 2020-11-22 16:00 努力爬行的小虫子 阅读(28) 评论(0) 推荐(0)
2002年真题
摘要:2002年真题1编程序输出整数n 的全部素数因子。例如: n=120 时,素因子为:2,2,2,3,5 所谓找素数因子其实就是不断用素数去试探能不能整除n,若能再试探这个素数是否可以继续整除,直到这个素数不能被整除了,就用另外一个素数去试探,直到这个整数除完为0. 1 #include <stdio 阅读全文
posted @ 2020-11-21 22:27 努力爬行的小虫子 阅读(33) 评论(0) 推荐(0)
 

1 2 下一页