Created
December 12, 2014 15:38
-
-
Save 92thunder/fc77f317b06e98cf8187 to your computer and use it in GitHub Desktop.
12/12講座問題1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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