摘要:
#includeusing namespace std;int main(){ //2 循环结构 //2-2 do-while int num = 0; do{ cout << num << endl; nu... 阅读全文
posted @ 2021-03-10 13:29
yub4by
阅读(64)
评论(0)
推荐(0)
摘要:
#includeusing namespace std;int main(){ /* 算法--冒泡排序(实现升序) 比较相邻元素,若第一个>第二个,则交换 对每一组相邻元素执行上句操作,完成后,找到第一个最大值 ... 阅读全文
posted @ 2021-03-10 13:28
yub4by
阅读(248)
评论(0)
推荐(0)
摘要:
#include#includeusing namespace std;int main(){ /* 二维数组的数组名 查看二维数组所占内存空间 获取二维数组首地址 */ // 1 int ar... 阅读全文
posted @ 2021-03-10 13:28
yub4by
阅读(58)
评论(0)
推荐(0)
摘要:
#includeusing namespace std;int main(){ /* 数组特点: 放在一块连续内存空间中 数组中每个元素的数据类型相同 下标从0开始索引 */ //数组定... 阅读全文
posted @ 2021-03-10 13:27
yub4by
阅读(82)
评论(0)
推荐(0)

浙公网安备 33010602011771号