日期排序 (C++代码) 摘要:最主要的就是把月日年拆开,变为年月日的一个整数,再对整数排序即可#include <iostream>#include <cstdlib>#include <cmath>#include <deque…… 题解列表 2018年02月12日 0 点赞 0 评论 1387 浏览 评分:0.0
第几天 (C++代码) 摘要://把年月日分割成三个字符串,再转化为三个整数然后求解 #include <iostream> #include <cstdlib> #include <cmath> #include <de…… 题解列表 2018年02月11日 0 点赞 0 评论 872 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:用判断语句去做就好了注意事项:if下面要跟elseif 要搞清if elseif的关系参考代码:#include<stdio.h>int main (){int n;printf("请输入…… 题解列表 2018年02月11日 0 点赞 0 评论 535 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:用穷举法 一个个去比注意事项:要先定义一个max变量 假设这个最大值等于data[0]或者其他都行,然后再一个个去对比参考代码:#include<stdio.h>int main (){in…… 题解列表 2018年02月11日 0 点赞 0 评论 583 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ float f; printf("请输入华氏温度:"); scanf("%f",&f); print…… 题解列表 2018年02月11日 0 点赞 0 评论 610 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:每个字母都向后移四位 我们可以通过一个循环来完成注意事项:参考代码:#include<stdio.c>int main (){char c1='C';char c2='…… 题解列表 2018年02月11日 0 点赞 0 评论 669 浏览 评分:0.0
C语言训练-求函数值 (C语言代码) 摘要:#include <stdio.h>int main(){ int x,f=10; scanf("%d",&x); if(x==1)f=10; else f=1…… 题解列表 2018年02月11日 0 点赞 0 评论 807 浏览 评分:0.0
IP判断 (C语言代码) 摘要:#include <stdio.h>#include <string.h>int main(){ int i=0,j,flag=1,s=0; char a[1000][31]; …… 题解列表 2018年02月11日 0 点赞 0 评论 859 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.4 (C语言代码) 摘要:解题思路:简单暴力233注意事项:参考代码:#include <stdio.h>void Change(int a[],int b[],int m,int n){ int i,t=0; for(i=n…… 题解列表 2018年02月11日 0 点赞 0 评论 521 浏览 评分:0.0
蓝桥杯算法提高VIP-铺地毯 (C++代码) 摘要:解题思路:注意事项:参考代码://easy #include <cstdlib> #include <cstdio> using namespace std; int n; int a[1…… 题解列表 2018年02月11日 3 点赞 0 评论 1499 浏览 评分:0.0