题解列表
数字的顺序,逆序输出
摘要:解题思路:使用strlen()函数,循环注意事项:使用该函数包含string.h的头文件参考代码:#include<stdio.h>#include<string.h> //注意使用该头文件int m……
自定义函数之字符提取
摘要:解题思路:用s[ ]和t[ ]对比注意事项:s[ ]的大小参考代码:#include<stdio.h>int main(){ char s[100],t[6]="aeiou"; int i,c; fo……
1635: 蓝桥杯算法训练VIP-整数平均值(简单解法)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int add(int n) //定义函数add{ int *p,a[100]={0},i,sum=0; //定义指针……
个人认为较为简单的数字分离,仅供参考!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fen(int a){ int b,c,d,e; b=a/1000; //得到千位数 c=a/1……
定义三个函数对整数处理(指针做法)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 10void input(int* arr,int n); //输入函数,将十个数输入存……
2841: 大整数加法(超详细解答)
摘要:解题思路:写了很久,要注意前导0和十进制的运算注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[201]={&#……
if语句菜鸟驿站写法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n%2==0){ printf("even"); }……
题解 3000: 交换值
摘要:解题思路:简单一点注意事项:参考代码: int a,b; scanf("%d %d",&a,&b); printf("%d %d",b,a); return 0;……
2839: 石头剪刀布
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int na,nb,n,i; int a1=0,b1=0;//记……