Skip to content

Instantly share code, notes, and snippets.

@92thunder
Created December 12, 2014 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 92thunder/fc77f317b06e98cf8187 to your computer and use it in GitHub Desktop.
Save 92thunder/fc77f317b06e98cf8187 to your computer and use it in GitHub Desktop.
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