题解列表

筛选

Hello, World!的大小

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char c1[]="Hello, World!";//"Hello, World!"是字符串,注意空格!……

循环嵌套练习:输出九九乘法表

摘要:解题思路:本题运用了多重嵌套,用for循环来完成,外层循环完成一次时,内层循环完成一轮注意事项:①题目要求,注意宽度为2,并且左对齐,用-2表示,且每个表达式之间有一个空格,在printf中再敲一个空……

财务管理(通俗易懂)

摘要:解题思路:循环的加和然后求平均值注意事项:for里面是;参考代码:#include<stdio.h>int main(){    int n,i;    float a,sum=0;    n=12;……

题解1040:【编程入门】实数的打印

摘要:# **题目解释** 在题目中以为一个实数的打印,在其他的数字并没有问题,问题在于小数点是精确到两位小数,那么我们就必须用到一个一个头文件和语句来实现。 # 代码理解 #includ……

2864: 单词替换

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() {     int n = 0;     char s[10……

简单粗暴的解法

摘要:解题思路:立方用自定义函数,主函数用for循环注意事项:参考代码:#include<stdio.h>double power(double n,int p){ int i;double pow=1; ……

应该是这个吧

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    float a;    double b;    scanf("%f%lf",&a,&b);    pri……

1秒看懂思路

摘要:解题思路:注意事项:有些数据太大int型无法接收,需要用long型参考代码:import java.util.Scanner;public class Tom数 { public static voi……

c++字符串加密病历单

摘要:解题思路:注意事项:xyz的逆序输出参考代码:#include <bits/stdc++.h>using namespace std;int main (){ string tmp; char ans……