Advertisement
dimon-torchila

Untitled

Dec 15th, 2022
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include "bits/stdc++.h"
  2. #include "lab1.h"
  3.  
  4. using namespace std;
  5.  
  6. void Print(lab1::Queue q){
  7.     while(!q.isEmpty()){
  8.         cout << q.front() << ' ';
  9.         q.pop();
  10.     }
  11. }
  12.  
  13. void SimpleSort(lab1::Queue& q){
  14.  
  15. }
  16.  
  17. int main(){
  18.     srand(std::time(0));
  19.     lab1::Queue queue(10000);
  20.     for(int i = 0; i < queue.size(); ++i)
  21.         queue.push(rand() % 10000);
  22.     Print(queue);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement