2001年真题
摘要:三、填空题 1、一下程序功能为:输入100本书的名称和单价,按照单价进行排序后输出。 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define NUM 3//由于运行输入方便 所以将#define NUM 100 改成#define NUM 3 4 5
阅读全文
指针题目集合
摘要:注意:数组元素中的"[]"是变址运算符,相当于*(+). 对于一维数组b,b[j]相当于*(b+j). 对于二维数组元素a[i][j],将分数组名a[i]当做b代入*(b+j)=>*(a[i]+j),再将其中的a[i]换成*(a+i)又得到*(*(a+i)+j) 1、 真题中出现的 举一反三: 1
阅读全文
2000年真题
摘要:二、填空题2、对于正整数n输出其和等于n且满足以下限制条件的正整数和式,即组成和式的数字电左至右构成一个非递增的序列。 如: n=4则程序输出为:4=44=3+14=2+24=2+1+ 14=1+1+1+1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #
阅读全文
1997-1999真题
摘要:(central university of finance and economics) 1997年 1、 #include <stdio.h> #include <stdlib.h> int main() { int m,n; int two_f,three_f; two_f=2; three_
阅读全文