摘要: #include<stdio.h> #include <iostream> using namespace std; //选择排序的理解:每次循环n-1次,每一次找出一个最大或者最小的值并记录,当每次循环结束时,将找到的值放在末尾或者首部,然后继续循环 void swap(int *a, int * 阅读全文
posted @ 2020-03-17 14:35 神迹丶 阅读(427) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include <iostream> #include <fstream> using namespace std; int main() { ifstream infile; //以读模式打开文件 infile.open("C:/123.txt"); //打开 阅读全文
posted @ 2020-03-17 11:31 神迹丶 阅读(218) 评论(0) 推荐(0) 编辑
网站已运行: