-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (25 loc) · 699 Bytes
/
main.cpp
File metadata and controls
33 lines (25 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <iostream>
#include "Kolejka.h"
using namespace std;
void callArrayQueue(){
Kolejka kolejka;
int arr[10];
int start = 0;
int* rear;
rear = &start;
kolejka.arrayQueueAdd(arr, 10, 0, rear);
kolejka.arrayQueueAdd(arr, 10, 1, rear);
kolejka.arrayQueueAdd(arr, 10, 2, rear);
std::cout<<kolejka.arrayQueueNext(arr,rear)<<std::endl;
std::cout<<kolejka.arrayQueueNext(arr,rear)<<std::endl;
std::cout<<kolejka.arrayQueueNext(arr,rear)<<std::endl;
std::cout<<kolejka.arrayQueueNext(arr,rear)<<std::endl;
}
//ZADANIE 3
//STOS: S Y E U Q T S A O N I E
//ZADANIE 4
// E A S Y -> E A * S * Y * *
int main() {
callArrayQueue();
return 0;
}