题解列表
C语言字符串反转(全网最短了)
摘要:解题思路:简单粗暴直接反转注意事项:从len-1开始反循环遍历参考代码:#include<stdio.h>#include<string.h>int main(){ char a[1000]; ……
利润计算 -编译通过无误
摘要:解题思路:按照题目意思逐步写代码即可注意事项:参考代码:#include<stdio.h>int main(){ int n,m;//n为利润,m为应发奖金 scanf("%d",&n); if(n<……
c++计算圆周率代码
摘要:解题思路:利用迭代法计算圆周率注意事项:注意精度参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { dou……
1124:大小写问题 C语言
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[101]; int len; gets(a); len=s……