Advertisement
dimon-torchila

Untitled

Dec 15th, 2022
885
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include "bits/stdc++.h"
  2. #include "lab1.h"
  3.  
  4. using namespace std;
  5.  
  6. int main(){
  7.     ::srand(::time(nullptr));
  8.     lab1::Queue queue(25);
  9.     for(int i = 0; i < queue.size(); ++i)
  10.         queue.push(rand() % 1000);
  11.     queue.print();
  12.     queue.sort();
  13.     queue.print();
  14.  
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement