P1021 (C语言代码) 摘要:为什么运行结果是错的?参考代码:#include<iostream>#include<math.h>using namespace std;#define N 100int main(){ int a…… 题解列表 2017年12月04日 0 点赞 2 评论 572 浏览 评分:0.0
循环数组就好啦 摘要:解题思路:循环数组的思想就行拉注意事项:参考代码:#include<cstdio>#include <cstring>#include <ctype.h> using namespace std;in…… 题解列表 2017年12月04日 1 点赞 0 评论 851 浏览 评分:0.0
循环数组做法,有用的话点点赞 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;#define maxn 105int a[maxn];int b[maxn];int ma…… 题解列表 2017年12月05日 1 点赞 0 评论 850 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题12.5 (C语言代码) 摘要:#include<stdio.h>int move(value, n){ int a[32]; int i; for(i=0;i<32;i++) a[i]=value%2,value=value/2…… 题解列表 2017年12月05日 0 点赞 0 评论 831 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:首先看清题目,明白当n=5时,母牛数量为6的含义,然后慢慢列数列,找规律,你会发现n>4时,第n年的母牛数量等于第n-1年母牛的数量在再上第n-3年母牛的数量(因为这些母牛都会在他们的第四年…… 题解列表 2017年12月05日 0 点赞 0 评论 678 浏览 评分:0.0
WU-C语言程序设计教程(第三版)课后习题8.4 (C语言代码) 摘要:#include<stdio.h> void change(int a[][3]) { int i,j,t; for(i=0;i<3;i++) { for(j=i;j<3;j++…… 题解列表 2017年12月05日 13 点赞 6 评论 736 浏览 评分:0.0
WU-C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:#include<stdio.h> #include<string.h> void antitone(char *a,int N) { int i,t; for(i=N-1;i>(N-1…… 题解列表 2017年12月05日 5 点赞 0 评论 1865 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:注意事项: "c="参考代码:#include<stdio.h>int main(){ float f; scanf("%f",&f); printf("c…… 题解列表 2017年12月05日 0 点赞 0 评论 603 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.11 (C语言代码) 摘要:#include<stdio.h>struct node{ int date; struct node *next;};int main(){ int n,i; scanf("%d",&n); …… 题解列表 2017年12月05日 0 点赞 0 评论 850 浏览 评分:0.0
WU-C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:#include<stdio.h> #include<string.h> void link(char *a,char *b) { a=strcat(a,b); puts(a); …… 题解列表 2017年12月05日 4 点赞 1 评论 769 浏览 评分:0.0