求圆的面积 (C语言代码) 摘要:解题思路:计算公式:面积=π*r*r注意事项:π在C语言中的表示为:头文件加入#define pai 3.1415926#include <stdio.h>#include <math.h>#def…… 题解列表 2017年12月28日 0 点赞 0 评论 1375 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:以468为例468除以10为46余8,即个位数为8468除以100为4余68,即百位数为4十位数为68-8=60,再除以10得6注意事项:主要注意,计算十位数时运算顺序及括号是否丢掉情况pr…… 题解列表 2017年12月28日 1 点赞 0 评论 1010 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include"stdio.h"int gcd(int a,int b);//函数声明int lcm(int a,int b);//函数声明int main(){ …… 题解列表 2017年12月28日 0 点赞 0 评论 684 浏览 评分:0.0
A+B for Input-Output Practice (VII) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int a,b; while (~scanf("%d %d",…… 题解列表 2017年12月28日 0 点赞 0 评论 691 浏览 评分:0.0
WU-【数组的距离】 (C++代码) 摘要:注意别数组越界了 s数组开大点 位100000+5再用快速排序 避免了超时参考代码:#include<stdio.h> #include<math.h> #include<iostream> …… 题解列表 2017年12月28日 5 点赞 0 评论 1135 浏览 评分:0.0
琪露诺的编程教室(C++代码) 摘要:解题思路: strcmy(a,b)---比较数组a,b,如果大于0,则表示数组a比b大;小于0,则表示数组a比b小;相等表示两个数组 相等; &nb 题解列表 2017年12月28日 0 点赞 0 评论 1093 浏览 评分:0.0
琪露诺的编程教室(C++代码) 摘要:解题思路: strcmy(a,b)---比较数组a,b,如果大于0,则表示数组a比b大;小于0,则表示数组a比b小;相等表示两个数组 相等; &nb 题解列表 2017年12月28日 0 点赞 0 评论 863 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define N 100#include <string.h>int main(){ c…… 题解列表 2017年12月28日 0 点赞 0 评论 699 浏览 评分:0.0
DNA (C语言代码) 摘要:#include <stdio.h> void drawFrontSpaceTop(int floor); //floor层数 void drawMiddleSpaceTop(int flo…… 题解列表 2017年12月28日 0 点赞 0 评论 1192 浏览 评分:0.0
琪露诺的编程教室 (C++代码) 摘要:解题思路:注意事项:很多人表示看不懂,因为这个其实是用数学的方法来解决,如果数学不好的还是直接背下来吧。。。参考代码:#include <iostream> #include <cmath>#incl…… 题解列表 2017年12月28日 0 点赞 0 评论 967 浏览 评分:0.0