Skip to content

Instantly share code, notes, and snippets.

@92thunder
Created Dec 12, 2014
Embed
What would you like to do?
12/12講座問題1
#include <stdio.h>
#include <algorithm>
using namespace std;
int main() {
int array[5] = { 4, 1, 2, 5, 3 };
sort(array, array + 5);
for( int i = 0; i < 5; i++ ) {
printf("%d\n", array[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment