数组求解与指定数字相同的数的个数 摘要:解题思路:首先数组a存储数字,100就代表整数序列最大为100,两个变量n,m表示整数序列的长度(N <= 100)和指定的数字, 其次一个for循环读取数字,并存到数组a…… 题解列表 2023年10月28日 0 点赞 0 评论 582 浏览 评分:9.9
[编程入门]自定义函数之字符串拷贝 STL大法 摘要: 参考代码: #include <iostream> using namespace std; string x; int n,k; int main() { cin>>n>>…… 题解列表 2023年10月28日 1 点赞 0 评论 312 浏览 评分:0.0
题解 2765: 计算分数的浮点数值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b; cin>>a>>b; …… 题解列表 2023年10月28日 0 点赞 0 评论 695 浏览 评分:9.9
题解 1808: [编程基础]输入输出练习之精度控制1 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2023年10月28日 0 点赞 0 评论 867 浏览 评分:9.9
字符串比较! 摘要:#include<stdio.h>#include <string.h>int main(){ char c[100],q[100]; scanf("%s",c); scanf("%s",…… 题解列表 2023年10月28日 0 点赞 0 评论 760 浏览 评分:9.9
最简单写法c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int h = 1189; int t = h; int w = 84…… 题解列表 2023年10月28日 1 点赞 0 评论 441 浏览 评分:0.0
[编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("He…… 题解列表 2023年10月28日 0 点赞 0 评论 246 浏览 评分:0.0
寻找奇整数(使用sizeof()函数计算数组长度) 摘要:参考代码: ```c #include int main() { int a[]={3,7,5,13,25,45,78,23,8,33,9,19,28,41,50}; int len=…… 题解列表 2023年10月28日 0 点赞 0 评论 350 浏览 评分:0.0
去除空格(C语言) 摘要:参考代码: ```c #include void Spacebar(char *a,int len) { for(int i=0;i…… 题解列表 2023年10月28日 0 点赞 0 评论 481 浏览 评分:0.0
计算输入数据的和与乘积(用char数组存) 摘要:参考代码: ```c #include #include int main() { char a[100]; gets(a); int len=strlen(a); int …… 题解列表 2023年10月28日 0 点赞 0 评论 434 浏览 评分:10.0