C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c1='C',c2='h',c3='i',c4=…… 题解列表 2018年10月23日 0 点赞 0 评论 584 浏览 评分:0.0
逆序数 (C语言代码) 摘要:#include "stdafx.h"#define max 100int main(){ int n,a[max],i,j,count=0; scanf("%d", &n); for (i = 0;…… 题解列表 2018年10月23日 0 点赞 0 评论 1440 浏览 评分:4.0
蓝桥杯算法提高VIP-求最大值 (C语言代码) 摘要:#include "stdafx.h"#define max 100void bubblesort(int a[],int b[], int n) //数组a从大到小,并且b同步变化{ int i,…… 题解列表 2018年10月23日 0 点赞 0 评论 1939 浏览 评分:7.0
蓝桥杯算法训练VIP-最长字符串 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"int main(){ char s[5][100] = { 0 }; int i,max=0,len,flag; for …… 题解列表 2018年10月23日 0 点赞 0 评论 1007 浏览 评分:0.0
蓝桥杯算法训练VIP-斜率计算 (C语言代码) 摘要:#include "stdafx.h"int main(){ float x1, y1, x2, y2; double k; printf("input x1,y1 x2,y2 \n"); scan…… 题解列表 2018年10月23日 0 点赞 0 评论 816 浏览 评分:0.0
蓝桥杯算法训练VIP-字符删除 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"int main(){ char str[20] = { 0 }, ch, str2[20] = {0}; int i,le…… 题解列表 2018年10月23日 0 点赞 0 评论 613 浏览 评分:0.0
蓝桥杯2014年第五届真题-分糖果 (C语言代码) 摘要:解题思路:先判断,再分,后加,注意事项:参考代码#include <bits/stdc++.h>using namespace std;void ftg(int *ans,int c){ an…… 题解列表 2018年10月23日 0 点赞 0 评论 1600 浏览 评分:9.9
蓝桥杯算法训练VIP-数组查找及替换 (C++代码) 摘要:解题思路:按题目要求先删除数组中能被b整除的,然后再排序,最后再输出。注意事项:输出时注意如果在65-90之间,则输出对于的字母,否则原样输出数字。参考代码:#include<bits/stdc++.…… 题解列表 2018年10月22日 0 点赞 0 评论 530 浏览 评分:0.0
数据结构-八进制数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<iostream>#include<algorithm>#include<string>#include<…… 题解列表 2018年10月22日 1 点赞 0 评论 1427 浏览 评分:0.0
蓝桥杯算法提高VIP-身份证号码升级 (C语言代码) 摘要:解题思路:1.先保存字符串;2.把字符串后移2位(从最后一位开始到第7位);3.把‘1’和‘9’加到字符串中去;4.求验证码,定义两个数组a和b,可以很方便求。5.把验证码加到第17位即可(从0位开始…… 题解列表 2018年10月22日 1 点赞 0 评论 1690 浏览 评分:9.9