查找最小的k个元素
摘要:
题目:输入n个整数,输出其中最小的k个。例如输入1,2,3,4,5,6,7和8这8个数字,则最小的4个数字为1,2,3和4。// 查找最小的k个元素.cpp : Defines the entry point for the console application.///*题目:输入n个整数,输出其中最小的k个。例如输入1,2,3,4,5,6,7和8这8个数字,则最小的4个数字为1,2,3和4。*/#include "stdafx.h"#include #include #define MAX_SIZE 256using namespace std;void selectM 阅读全文
posted @ 2013-11-05 18:05 学习程序 阅读(288) 评论(0) 推荐(0)
浙公网安备 33010602011771号