自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 球体积

#include "pch.h"#include <iostream>#include <math.h>#include <iomanip>const double PI =3.1415927;using namespace std;double V(double r){ return 4 * PI* pow(r,3) / 3.0; }; int...

2018-12-08 10:16:06 195

原创 字符排序

#include “pch.h”#include #includeusing namespace std;void swap(int&,int&);//用来交换int main(){char ch[1000];cin >> ch;int a = strlen(ch); for (int i = 0; i < a ; i++)//冒泡排序 {...

2018-12-08 09:28:03 188

原创 动态数组的排序问题

输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘0’组成的,这时这个整数就是0)。你的任务是:对这些分割得到的整数,依从小到大的顺序排序输出。#include "pch.h"#include <iostream>#include<cstring&...

2018-12-08 09:17:46 1838

原创 加法程序

#include “pch.h”#include #include #includeusing namespace std;int main(){int a, b, c;cin >> a >> b;c = a + b;cout << “a+b=” << c;}

2018-12-08 07:37:37 1459

原创 相邻问题

#include “pch.h”#include #include #includeusing namespace std;int main(){string a;int b = 0;cout << "用RBG分别表示红蓝绿颜色的石头及其排序" << endl;getline(cin, a);cout << endl;for(int i=...

2018-12-07 20:20:13 312

原创 帮助小朋友算房间数

#include "pch.h"#include <iostream>#include <cmath>using namespace std;int main(){ int a,b=0,c,d; cout << "房间数等于="; cin >> a; cout << endl; for(int i=1;i&am

2018-12-07 20:00:35 106

原创 帮助皮塔小朋友

Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the following: in the given string, consisting if uppercase and ...

2018-12-07 19:22:47 239

转载 ????

firstly,I want to let all of you be bullshit.欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。新的改变我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器...

2018-12-07 16:52:41 120

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除