可以利用函数控制输出小数的位数 摘要:解题思路:注意事项:需要包含头文件#include<iomanip>,setprecision需要和fixed一起用才是控制位数,单用只是控制有效位数参考代码: #include<iostream> …… 题解列表 2024年05月07日 0 点赞 0 评论 229 浏览 评分:0.0
题解 2936: 简单算术表达式求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int yun(int x,int y,char z){ int d; if(z=='+') d=x+y; …… 题解列表 2024年05月07日 0 点赞 0 评论 244 浏览 评分:0.0
基础c语言代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[100] = { 0 }; int a = 0…… 题解列表 2024年05月07日 0 点赞 0 评论 202 浏览 评分:0.0
2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,n; cin>>a>>n; int sum; i…… 题解列表 2024年05月07日 0 点赞 0 评论 128 浏览 评分:0.0
编写题解 1743: 大整数排序 摘要:解题思路:两个字符串,谁的长度长谁就大,若长度相等,从第一个字符开始比较,注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>…… 题解列表 2024年05月07日 0 点赞 0 评论 170 浏览 评分:0.0
编写题解 2802: 满足条件的数累加题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int m,n,sum=0;cin>>m>>n;for(int…… 题解列表 2024年05月07日 0 点赞 0 评论 297 浏览 评分:0.0
蛮简单的思路,运行是100分 摘要:解题思路:看一遍就懂了注意事项:参考代码:#include<stdio.h>int zhuanzhi(int a[3][3]){ for(int j=0;j<3;j++) { for(int i=0…… 题解列表 2024年05月07日 0 点赞 0 评论 118 浏览 评分:0.0
编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void Statistic(char* str,int n){ int i; int character = 0; int numbe…… 题解列表 2024年05月07日 0 点赞 0 评论 156 浏览 评分:0.0
1042: [编程入门]电报加密 摘要:解题思路:灵活运用ctype函数注意事项:注意大小写参考代码:#define _CRT_SECURE_NO_WARNINGS#pragma warning(disable:6031)#include …… 题解列表 2024年05月08日 0 点赞 0 评论 179 浏览 评分:0.0
c++ 2071: [STL训练]壮志难酬 没用到字符串 摘要:```cpp #include using namespace std; int main() { vector v1; int t; cin>>t; …… 题解列表 2024年05月08日 0 点赞 0 评论 183 浏览 评分:0.0