Skip to content

Instantly share code, notes, and snippets.

@bho7982
bho7982 / C++ 퀵정렬
Created March 25, 2017 05:25
C++에 배열을 생성하고 섞은뒤, 이를 다시 퀵정렬로 정렬한다.
#include <iostream>
#define MAX_SIZE 100
int S[MAX_SIZE];
void exchange(int a, int b)
{
int Save = S[a];
S[a] = S[b];