IP判断 (C++代码) 摘要:解题思路:首先判断所有不可能的情况首位字符为‘0’,‘-’号点后面为0,如果字符为大小写字母其它字符例如#,%。&等等(除点字符) 5.剩下的就是不在数字范围0~255注意事项:注意字符串的输入输出…… 题解列表 2018年11月22日 0 点赞 0 评论 808 浏览 评分:0.0
C二级辅导-等差数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],i,sum,n; scanf("%d",&n); a[0]=2; …… 题解列表 2018年11月23日 0 点赞 0 评论 823 浏览 评分:0.0
C语言训练-尼科彻斯定理 (C语言代码)简单,易懂 摘要:解题思路:我们可以设置一个while(1)循环来帮助我们从1开始寻找我们需要的连续奇数串的开头,在while(1)循环中我们可以利用一个for循环求相应开头的m个奇数组成的奇数串的和,记为sum。当我…… 题解列表 2018年11月23日 1 点赞 0 评论 1731 浏览 评分:0.0
三位数分解 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x, gewei, shiwei, baiwei; cin >…… 题解列表 2018年11月23日 0 点赞 0 评论 968 浏览 评分:0.0
贷款计算 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int zonge, time, repay = 0; float r…… 题解列表 2018年11月23日 0 点赞 0 评论 1020 浏览 评分:0.0
(C语言代码) 摘要:#include<stdio.h> #include"malloc.h" typedef struct node { int num; struct node *next; …… 题解列表 2018年11月23日 0 点赞 0 评论 1012 浏览 评分:0.0
C语言训练-角谷猜想 (C语言代码)简单,清晰! 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int N; scanf("%d",&N);//输入 while(1)//while(1)循环直到最后得到N/…… 题解列表 2018年11月23日 0 点赞 0 评论 2062 浏览 评分:0.0
题解 1065: 2004年秋浙江省计算机等级考试二级C 编程题(1) 摘要:#include<stdio.h> #include "math.h" #define N 10 #define min(a,b) (a)>(b)?(b):(a) int main() { …… 题解列表 2018年11月23日 0 点赞 0 评论 1360 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:#include<stdio.h> double fact(int n); double mypow(double x,int n); double get_double(double x,in…… 题解列表 2018年11月23日 0 点赞 0 评论 1862 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:#include<stdio.h> int ctof(int c); int main() { int i=-100; for(;i<=150;i+=5) prin…… 题解列表 2018年11月23日 0 点赞 0 评论 1685 浏览 评分:0.0