C语言程序设计教程(第三版)课后习题11.8 (Java代码) 摘要:解题思路:java中没链表这个概念,可以用灵活使用数组代替。注意事项:交换值时注意变量。参考代码:import java.util.Scanner;public class Main { public…… 题解列表 2018年04月11日 0 点赞 0 评论 1197 浏览 评分:0.0
蓝桥杯算法提高VIP-勾股数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { for(int i=1;i<=1000;i++) …… 题解列表 2018年04月11日 0 点赞 0 评论 897 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<math.h>#include<stdio.h>int main(){ int a, b …… 题解列表 2018年04月11日 0 点赞 0 评论 928 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.2 (C语言代码) 摘要:解题思路:注意事项:结果正确,貌似执行的时候有点问题,希望大神指点参考代码:#include<stdio.h>#include<math.h>double a,b,c,p,q;float shiroo…… 题解列表 2018年04月11日 0 点赞 0 评论 1228 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c,max;scanf("%d%d%d",&a,&b,&c);if(a>b){ max=a; if…… 题解列表 2018年04月11日 0 点赞 0 评论 792 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:注意事项:注意:写a[5]时注意里面字符要有单引号,输出要用%c。参考代码:#include<stdio.h>int main(){int a[5]={'C','h&…… 题解列表 2018年04月11日 0 点赞 0 评论 1165 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int x,y;scanf("%d",&x);if(x<1){y=x;printf("%d",y);}else i…… 题解列表 2018年04月11日 0 点赞 0 评论 785 浏览 评分:0.0
开心的金明 (C语言代码) 摘要:解题思路:背包问题注意事项:参考代码:#include<stdio.h>int sum[25][30100]; int max(int a,int b){ if(a>b) { return a; }…… 题解列表 2018年04月11日 0 点赞 0 评论 853 浏览 评分:0.0
printf基础练习2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; scanf("%d",&i); printf("0%o %d 0x%x\n",i,…… 题解列表 2018年04月12日 0 点赞 0 评论 766 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:非常传统的直接过程注意事项:参考代码:#include<stdio.h>int main(){ int m; int n[100]; int i; for(i=0;i…… 题解列表 2018年04月12日 0 点赞 0 评论 1112 浏览 评分:0.0