自定义博客皮肤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)
  • 收藏
  • 关注

原创 c++查找数组中大于某不定值的元素

c++查找数组中大于某不定值的元素

2022-06-02 00:24:44 1215 1

原创 C++统计字符串中各字母字符对应的个数

C++统计字符串中各字母字符对应的个数

2022-06-01 23:46:28 2347

原创 #C++倒序输出最后k个元素#

倒序输出数组k个元素

2022-06-01 15:51:35 139

原创 #C++比较字符串大小#

#include <iostream>using namespace std;int mystrcmp(const char* src, const char* dst);int main() { char s1[100] = { 0 }; char s2[100] = { 0 }; cin.getline(s1, sizeof(s1)); cin.getline(s2, sizeof(s2)); int ret = mystrcmp(s1, s2); cout .

2022-05-30 21:45:31 218

原创 #C++创建二维动态数组#

#include<iostream>using namespace std;int main() { int n; cin >> n; // write your code here...... int **a = new int*[n]; for (int i = 0; i < n; i++) { a[i] = new int[n]; } for (int i = 0; i < n; i++) { for (int j = 0; j &l.

2022-05-30 21:36:28 57

原创 #C++复制部分字符串#

#include <iostream>using namespace std;int main() { /*helloworld 6 world*/ char str[30] = { 0 }; cin.getline(str,sizeof(str)); int m; cin >> m; char * p = str+m-1; while (*p != '\0') { cout &l...

2022-05-30 21:33:19 89

原创 #C++选择排序#

#include <iostream>using namespace std;int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = 0; i < len; i++) { cin >> arr[i]; } // write your code here...... int max = arr[0...

2022-05-30 21:31:01 48

原创 #C++冒泡排序#

#include <iostream>using namespace std;int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = 0; i < len; i++) { cin >> arr[i]; } // write your code here...... int tem; for (int j = len; j > 1; .

2022-05-30 21:28:24 65

空空如也

空空如也

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

TA关注的人

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