Skip to content

Instantly share code, notes, and snippets.

@kjk
Created Jul 21, 2020
Embed
What would you like to do?
Example for sort (made with https://codeeval.dev)
#include <algorithm> // std::sort
#include <iostream>
#include <vector> // std::vector
using namespace std;
int main()
{
vector<int> a{3, 8, 1, 5, -8, 33, 4};
sort( a.begin(), a.end() );
int const n = a.size();
for( int i = 0; i < n; ++i ) { cout << a[i] << ' '; }
cout << '\n';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment