弟弟的作业 (C语言代码) 摘要:#include "stdio.h" #include "string.h" int stoi(int n, char s[]){ int a = 0,t=1…… 题解列表 2018年11月29日 0 点赞 0 评论 526 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include "stdafx.h"int ged(int a,int b){int r,t;if(a<b){t=a;a=b;b=t;} r=a%b;while(…… 题解列表 2018年11月29日 0 点赞 0 评论 398 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>*/int main(){ int a[10],i,min,j,max,pos=0,POS=0,temp; for(i=0…… 题解列表 2018年11月29日 0 点赞 1 评论 310 浏览 评分:0.0
发工资咯 (Java代码) 摘要:解题思路:注意事项:先取100面额的人民币,再依次降低面额参考代码:import java.util.Scanner;public class Main { public static void ma…… 题解列表 2018年11月29日 1 点赞 0 评论 1137 浏览 评分:0.0
【绝对值排序】 (C++代码)set泛型的使用 摘要:解题思路:1.数据的存储使用结构体;2.struct node{ int x; int flag;//如果是负数flag=0,否则flag=1; //运算符重载set默认是升序,重载…… 题解列表 2018年11月29日 1 点赞 0 评论 912 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.3 (C语言代码) 摘要:解题思路:利用结构体数组注意事项:a[i].XX 输入字符数组无& 输入整形数组有& 输入多条数据 要多个变量(grade1 grade2 grade3 ) 数组只是…… 题解列表 2018年11月30日 0 点赞 0 评论 830 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:闰年判断(整数年份被400整除,非整数年份被四整除)即比平年多一天(二月为29天)注意事项:注意结构体的用法 在main中要先定义参考代码:#include<stdio.h>struct d…… 题解列表 2018年11月30日 0 点赞 0 评论 639 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.5 (C语言代码) 摘要:解题思路:通过结构体数组 并设置每科成绩的寄存变量累加求得平均值 设置max在循环中选取最大值 再在后面的循环中以max的值为依据确定数组的具体位置注意事项:多组实验数据会联动 设置寄存变量将他们穿…… 题解列表 2018年11月30日 0 点赞 0 评论 541 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define change(a,b) printf("%d %d",b,a) //这里的stuff无异 只是没有分号结尾int m…… 题解列表 2018年11月30日 0 点赞 0 评论 458 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define yu(a,b) a%bint main(){ int a,b; scanf("%d%d",&a,&b); …… 题解列表 2018年11月30日 0 点赞 0 评论 399 浏览 评分:0.0