Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- template<typename T>
- void sortiraj(T arr[], int n) {
- for(int i = 0; i < n; i++) {
- for(int j = i + 1; j < n; j++) {
- if(arr[i] > arr[j]) {
- T tmp = arr[i];
- arr[i] = arr[j];
- arr[j] = tmp;
- }
- }
- }
- }
- int main()
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement