题解列表
C语言程序设计教程(第三版)课后习题6.11 (C语言代码)
摘要:解题思路:能钻空子就钻空子注意事项:参考代码:/*用迭代法求 平方根公式:求a的平方根的迭代公式为: X[n+1]=(X[n]+a/X[n])/2要求前后两次求出的差的绝对值少于0.00001。 输出……
printf基础练习2 (C语言代码)
摘要:解题思路:%o:八进制输出 %x:十六进制输出 %d:十进制输出注意事项:参考代码:#include<stdio.h>int main(){ int i; scanf("%d"……
【求[X,Y]内被除3余1并且被除5余3的整数的和】 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,i,sum=0; scanf("%d%d",&x,&y); for(i=x;i……
优质题解
junmu1414:最大的字母 (C语言代码)
摘要:解题思路: 1.三个数组,c数组用于存放,分步的将a数组和b数组投入到c数组中 2.首先找到最大的符号是什么,用record记下最大……
动态二维数组! Vector向量等多种解法。(C/C++语言代码)
摘要:解题思路:C语言动态开辟二维数组注意事项:记得释放内存!参考代码:#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int mai……
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码)
摘要:#include<stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int n,row,col;
int **ma……
C语言训练-"水仙花数"问题2 (C语言代码)
摘要:解题思路:自己看注意事项: 换行参考代码:#include<stdio.h>int main() { int a; for(a=100; a<1000; a++) { if((a/……
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码)
摘要:解题思路:函数的应用注意事项:保留两位数参考代码:#include<stdio.h>#include<math.h>int main() { float x; scanf("%f",&x); if(x……
寻找奇整数 (C++代码)
摘要:解题思路:把原题中偶数都改成“-1”,然后直接查询给出的数字在列表中的位置参考代码:#include <iostream>
using namespace std;
int main() ……