- 博客(3)
- 收藏
- 关注
原创 冒泡排序算法
冒泡排序算法#include<iostream>using namespace std;int main(){ //创建数组 int array[] = {4,3,0,9,1,5,6,8,7,24,66,57}; //算出数组里有几个数据 /*算出数组所占的内存空间在除以数组内一个数据占用的 内存空间即可得出数组内有几个数据*/ int data = sizeof(array) / sizeof(array[0]); cout << "排序算法排序前:"
2021-09-29 22:46:49
156
原创 if goto语句实现计算器和各菜单跳转
if goto语句实现计算器和各菜单跳转#include<iostream>#include<ctime>using namespace std;int main(){ cout << "if—else语句配合goto跳转语句实现各类菜单跳转" << endl; cout <<""<<endl; MB: cout << "娱乐小程序: 输入1进入计算器模式 输入2进入猜数字小游戏" << en
2021-09-14 20:34:50
434
原创 数组的三种使用方法
数组的三种使用方法#include<iostream>using namespace std;int main(){ cout << " ————————————————————数组的三种使用方法————————————————————" << endl; cout << "" << endl; cout << "第一种: 数据类型 数组名 [数据个数]" << endl; int arr[5];
2021-09-14 20:26:11
390
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅