Tom数 (C语言代码) 摘要:解题思路:想得知长度,及各位上的数字,联想到字符数组,注意事项:参考代码:#include<stdio.h>int sum(char a[]){ int sum1=0,i; for(i=0…… 题解列表 2018年04月08日 13 点赞 0 评论 2445 浏览 评分:8.0
容易理解 摘要:#include<stdio.h> struct student { char number[20]; char name[10]; int grade[3]; }…… 题解列表 2018年04月08日 10 点赞 2 评论 1132 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题11.1 (C语言描述 大佬们别喷 写得有点直接) 摘要:解题思路:最不用大脑的方式注意事项:参考代码:#include <stdio.h>struct Calculate{ int year; int month; int day;…… 题解列表 2018年04月08日 0 点赞 0 评论 1620 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*定义一个结构体变量(包括年、月、日)。计算该日在本年中是第几天,注意闰年问题。*/#include<stdio.h>struct{ int year; int mon…… 题解列表 2018年04月08日 0 点赞 0 评论 1559 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:参考代码:#include<stdio.h>#include<math.h>int main(){ int n, m, l = 0, N = 0, M; scanf("%d", &n)…… 题解列表 2018年04月08日 0 点赞 0 评论 1600 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void Input(int* p,int n);void Fun1(int* p,int n);void Output(int* p…… 题解列表 2018年04月08日 0 点赞 0 评论 1489 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要: #include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a>b&&a>c…… 题解列表 2018年04月08日 5 点赞 0 评论 2063 浏览 评分:0.0
优质题解 C语言训练-斐波纳契数列 (C语言代码)递归和迭代两种方式描述 摘要:菲波那切数列用递归的方式效率是相当低下的,一般用迭代。但是为了学习,两种方法都写出来吧。参考代码如下:1 迭代方式#include <stdio.h> #include <string.h> …… 题解列表 2018年04月08日 9 点赞 6 评论 6463 浏览 评分:9.2
C语言程序设计教程(第三版)课后习题11.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <malloc.h>typedef struct student{ int n…… 题解列表 2018年04月08日 0 点赞 0 评论 1239 浏览 评分:0.0
优质题解 十->二进制转换 (Java代码) 解题思路:求二进制多用辗转相除法,创建数组来保存余数,逆序输出;注意事项:数a和-a的二进制就相差一个负号,故在求负数的二进制可以先求正数的,再加负号;辗转相除法是逆向读取的,所以数组逆序输出;参考代码:importjava.util.Scanner;publicclassMain{publicsta 题解列表 2018年04月08日 3 点赞 0 评论 2883 浏览 评分:5.3