发工资咯 (C语言代码) 摘要:解题思路:定义一个数组,存放每一种人民币是多少元,然后按最大开始拆分,直到工资为0结束当前工资的拆分。参考代码:#include <stdio.h> int main() { int mo…… 题解列表 2018年10月26日 0 点赞 0 评论 1667 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d",&a); b=a%10; printf(…… 题解列表 2018年10月26日 0 点赞 0 评论 1049 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 解题思路:三项功能逐步实现,位数,间隔的输出每一位,逆序。1、设置记位器,每次除以10。2、利用if语句算出每一位数,间隔输出。3、在2的基础上把每一位数乘以定位的积相加之和进行输出。注意事项:提前把输入的数存起来。参考代码:#includeintmain(){intx;scanf( 题解列表 2018年10月26日 0 点赞 0 评论 1119 浏览 评分:6.0
大神老白 (C语言代码) 摘要:#include "stdafx.h"#include "math.h"int main(){ int a[100][100],s=0,i=0,j=0,k; while (scanf("%d", &a…… 题解列表 2018年10月26日 0 点赞 0 评论 840 浏览 评分:0.0
程序员的表白 (C语言代码) 摘要:#include "stdafx.h" //答案不通过????void fun(int n){ char a[200][200] = { 0 }; int i, …… 题解列表 2018年10月26日 0 点赞 1 评论 4754 浏览 评分:6.8
GC的苦恼 (C语言代码) 摘要:#include "stdafx.h"void fun(int a){ if (a >= 90 && a <= 100) printf("A\n"); else if (a >= 75 && a <…… 题解列表 2018年10月26日 0 点赞 0 评论 1156 浏览 评分:0.0
陈教主的三角形 (C语言代码) 摘要:#include "stdafx.h"int triangle(int a, int b, int c){ if ((a + b > c) && (a + c) > b && (b + c) …… 题解列表 2018年10月26日 0 点赞 1 评论 507 浏览 评分:0.0
IP判断 (C语言代码) 摘要:#include "stdio.h"#include "string.h"int ex(int len,char a[]){ int i,s=0,t=1; for (i = len-1; i >=0;…… 题解列表 2018年10月26日 0 点赞 0 评论 1549 浏览 评分:0.0
数列排序 (C语言代码) 摘要:解题思路: 使用stl的list很简单就可以实现。list可以实现链头插入,也可以实现链尾插入。注意事项:参考代码:#include <bits/stdc++.h> using namespace …… 题解列表 2018年10月26日 1 点赞 0 评论 1384 浏览 评分:0.0