C语言程序设计教程(第三版)课后习题4.9 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; class M{ public static void main(String[] args) { …… 题解列表 2017年11月13日 1 点赞 0 评论 1001 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.3 (C语言代码) 摘要:解题思路:利用for循环来控制要加的语句注意事项:只能用于stdafx的调用函数中参考代码:#include "stdafx.h"void main(){ int a[3][3]; int i,j,k…… 题解列表 2017年11月13日 1 点赞 0 评论 875 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:1.先利用数组存储这十个数值;2.存储好数值后再查找数组中最小的那个数值,用min保存,并记录当前的数组下标j=i;3.设一个中间变量temp=arr[9],然后再将arr[j]的值赋给ar…… 题解列表 2017年11月13日 1 点赞 0 评论 786 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.7 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <stdio.h>#include <cstring>using namespace std; int ma…… 题解列表 2017年11月13日 0 点赞 0 评论 874 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (C语言代码) 摘要:解题思路:把题目拆成三个小问题分开解决1:算1+到a的和,2:算1的平方加到b的平方的和,3:算1/1加到1/c的和。注意事项:数据类型要用double不要用int 会装不下,scanf()中要用%l…… 题解列表 2017年11月13日 0 点赞 0 评论 953 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:ch=getchar放到while()括号外面和放到while()括号里面的区别1:放外面输入的字符串只接收第一个字符,不参与循环。放里面则一个一个参加循环。注意事项:参考代码:…… 题解列表 2017年11月13日 0 点赞 0 评论 688 浏览 评分:0.0
删除数组中的0元素 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,j,count,sum=0,k=0,x; int nums[1000]; s…… 题解列表 2017年11月13日 0 点赞 0 评论 2421 浏览 评分:4.0
母牛的故事 (C语言代码) 摘要:解题思路:#include<stdio.h>int main(){ int a,b,c,d,n,i,x,a1,b1,c1,d1; while(scanf("%d",&n)&&n!=0) {…… 题解列表 2017年11月14日 0 点赞 0 评论 759 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:#include<stdio.h> int pow(int n); int main() { int n, i; int sum=0; scanf("%d", &n); for(…… 题解列表 2017年11月14日 1 点赞 0 评论 1081 浏览 评分:0.0