宇宙尽头是什么
宇宙尽头是什么
全部文章
分类
归档
标签
去牛客网
登录
/
注册
宇宙尽头是什么的博客
全部文章
(共12篇)
题解 | #利用指针遍历数组#
#include <iostream> using namespace std; int main() { // 定义数组 int arr[6]; //让用户输入 for(int i=0;i<6;i++){ cin>>a...
2022-11-17
1
218
题解 | #字符串拼接#
getline(); // 一个好方法#include <iostream> using namespace std; int main() { string str1,str2; getline(cin, str1); getline(cin, str2); ...
2022-11-16
2
480
题解 | #字符的个数#
#include <iostream> using namespace std; int main() { // 字符串 并接受用户的输入 string str; cin>>str; int countA,countB,countC; //定...
2022-11-16
1
283
题解 | #计算公司年销售额#
二维数组的简单使用#include <iostream> using namespace std; int main() { // 创建二维数组存储月份销售额 int money[4][3]={ {22,66,44}, {77,33,88...
2022-11-16
2
331
题解 | #C++冒泡排序#
冒泡排序#include <iostream> using namespace std; int main() { int arr[6]; // 将用户的输入存入数组 for(int i=0; i<6;i++){ cin>>ar...
2022-11-15
1
275
题解 | #数组元素反转#
#include <iostream> using namespace std; // 输出函数 void myOut(int arr[]){ cout<<"["; for(int i=0; i<6;i++){ cout<<...
2022-11-15
1
297
题解 | #获取数组最值#
使用两个赋初始值的标记遍历数组。如果小了更改max的值如果大了更改min的值#include <iostream> using namespace std; int main() { // 定义两个标记 max 与 min int max=0,min=0; //...
2022-11-15
1
320
题解 | #规律数列求和#
#include <iostream> using namespace std; int main() { // 已知数列求和 long long sum =0; //总和 long long temp = 9; // 初始值 for(int i=0;i...
2022-11-14
1
299
题解 | #打印乘法表#
#include <iostream> using namespace std; int main() { int num = 0; //定义并初始化用户的输入 cin>>num; // 开始循环输出 for(int i = 1;i <...
2022-11-14
1
288
题解 | #输出水仙花数#
#include <iostream> #include<cmath> using namespace std; int main() { int a,b,c; //定义百十个位数的变量 // 开始循环判断水仙花数 for(int i = 100 ;...
2022-11-14
1
301
首页
上一页
1
2
下一页
末页