C语言程序设计教程(第三版)课后习题5.7 (C++代码) 摘要:解题思路:将每位数分给一个数组元素在进行判断注意事项:有点笨的方法参考代码:#include<iostream>using namespace std;int main(){ i…… 题解列表 2017年08月29日 1 点赞 0 评论 1137 浏览 评分:0.0
数列排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:# include <stdio.h># include <malloc.h>void destroy (int **p , int n);int main (void)…… 题解列表 2017年08月29日 0 点赞 0 评论 1071 浏览 评分:0.0
C语言训练-求具有abcd=(ab+cd)2性质的四位数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int n);int main(){ int i; for(i=1000;i<=9999;i++) …… 题解列表 2017年08月29日 0 点赞 0 评论 906 浏览 评分:9.9
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,a; long int t,sum=0; scanf("%d%d",&a,&n…… 题解列表 2017年08月29日 0 点赞 0 评论 1354 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:直接用字符数组反向输出就好注意事项:输出单个字符用%c,\0不需要输出。参考代码:#include "stdio.h"int main(){ int i,l; char a[20]…… 题解列表 2017年08月29日 0 点赞 0 评论 804 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long j,sum=0; int i,N; scanf("%d",&N); …… 题解列表 2017年08月29日 0 点赞 0 评论 837 浏览 评分:0.0
C语言训练-最大数问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:.#include<stdio.h>int main(){ int tem=-100000,n; while(scanf("%d",&n)&&n!=-1) …… 题解列表 2017年08月29日 1 点赞 2 评论 751 浏览 评分:0.0
C语言训练-斐波纳契数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,i; int num[50]={0}; num[1]=num[2]=1; f…… 题解列表 2017年08月29日 1 点赞 0 评论 1553 浏览 评分:9.9
C语言训练-数字母 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int count=0,i; char str[110]={0}…… 题解列表 2017年08月29日 0 点赞 0 评论 792 浏览 评分:0.0
C语言训练-排序问题<1> (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int num[4]={0…… 题解列表 2017年08月29日 0 点赞 0 评论 892 浏览 评分:0.0