题解列表
C二级辅导-进制转换 (C语言代码)
摘要:解题思路:用到1个函数 itoa(num,str,需要转化的进制数(例如8))把数num以8进制保存在身str中,注意事项:网页编译通不过,软件编译是可以的,16进制输出的是小写字母参考代码:#……
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int x,count; printf("Enter x:"); scanf("%d",&x); wh……
蓝桥杯算法提高VIP-格式化数据输出 (C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<string>
using namespace std;
int main()
{
string st……
蓝桥杯算法提高VIP-淘淘的名单 (C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
string str[10001];
string f(string s)
{
……
蓝桥杯算法提高VIP-理财计划 (C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
int main()
{
double k,c;
int n;
whil……
C语言训练-斐波纳契数列 (C语言代码)
摘要:解题思路:用递归法求解斐波拉契数列:设f0、f1、f2是数列中的3个数,观察可知:f2=f1+f0,在循环计算过程中,使f1,f2指向两个相邻的数,f2始终为新计算出的和值。注意事项:参考代码:#in……
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)
摘要:解题思路:本例是为了让大家更好理解“\n”的换行作用,提高输入代码的效率.注意事项:1.要用英文双引号,建议大家一开始就把输入法调成英文 2.别漏掉*参考代码:#include <st……
C二级辅导-计负均正 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i=0,j=0,N=20; int a; double sum=0.0;……
【偶数求和】 (C语言代码)
摘要:#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int *a, n, m, quot, remain, aver, sum……