字符串分类统计C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){char a[200];cin.get…… 题解列表 2024年08月07日 6 点赞 0 评论 777 浏览 评分:0.0
包你看懂,不懂来找我(c语言代码) 摘要:正常解法,输入一行输出一行,这个一行是一整行包括了空格,我也不知道是不是符合题意,这个是我看到题目第一眼想到的解法 ```c #include #include #define MAX 1…… 题解列表 2024年08月07日 2 点赞 0 评论 535 浏览 评分:9.9
特殊解法,宏定义解法,你肯定没有见过(c语言代码) 摘要:```c #include #define fun(a,b,c) printf("%d",b) int main() { int n1, n2, n3; scanf("%d …… 题解列表 2024年08月07日 4 点赞 0 评论 676 浏览 评分:6.0
1808: [编程基础]输入输出练习之精度控制1(c语言代码) 摘要:注意事项: 1.单精度是float 2.格式控制是%f 3.保留三位小数是%.3f ```c #include int main(){ float a; scanf("%f",&a…… 题解列表 2024年08月07日 0 点赞 0 评论 681 浏览 评分:0.0
1809: [编程基础]输入输出练习之精度控制2(哎呦,我真的是饿了) 摘要:注意事项: 1)双精度为double 2)格式为%lf 3)保留12位%.12lf ```c #include int main() { double a; scan…… 题解列表 2024年08月07日 3 点赞 0 评论 566 浏览 评分:9.9
1810: [编程基础]输入输出练习之精度控制3(c语言代码,包懂版) 摘要:题目说了只有数字是靠右对齐,字符不用 整型是靠右对齐4位**%4.d** 单精度是靠右对齐4位,保留4位小数**%4.2f** 双精度是靠右对齐4位,保留12位小数**%4.12lf** ``…… 题解列表 2024年08月07日 1 点赞 0 评论 277 浏览 评分:0.0
(c语言代码) 摘要:解释一下,%e是科学计数法的形式输出,%g用来输出浮点数,系统会自动选 f 格式或 e 格式输出,但选择其中长度较短的格式,不输出无意义的0 ```c #include int main() …… 题解列表 2024年08月07日 0 点赞 0 评论 345 浏览 评分:0.0
暴力求解 C语言 摘要:解题思路:循环并取数判断注意事项:注意审题参考代码:#include <stdio.h> int conut(int x)//测算每次i的位数 { int a = 0; whil…… 题解列表 2024年08月07日 0 点赞 0 评论 254 浏览 评分:10.0
多种方法,总有一种你没有见过(c语言代码) 摘要:##1)常规解法 输入字符串,获取长度,再逐个判断 ```c #include #include int main(){ char s[80]; gets(s); …… 题解列表 2024年08月08日 0 点赞 0 评论 252 浏览 评分:9.9
多种方法解决,不使用string头文件的解法也有(c语言代码) 摘要:**1)不使用数组,这种做法其实不符合题意,因为你没有连接,你的原数组没有变化** ```c #include #include int main(){ char s[50]; …… 题解列表 2024年08月08日 0 点赞 0 评论 279 浏览 评分:9.9