Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Sorting sort function stl in c++
#include <iostream> #include <algorithm> using namespace std; void show(int a[]) { for(int i = 0; i < 10; ++i) cout << a[i] << " "; } int main() { int a[10]= {1, 5, 8, 9, 6, 7, 3, 4, 2, 0}; cout << "\n The array before sorting is : "; show(a); sort(a, a+10); cout << "\n\n The array after sorting is : "; show(a); return 0; }
run
|
edit
|
history
|
help
0
Test 19(2020)
expm1
kroliki
lab17feb22x4B.cpp
Test 12(2021)
Why C++ optimizer has problems with these temporary variables
Pierwiastkowanie
TempSpecial
Common elements in 3 sorted vectors with extra space
Wave Sort