Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // QUEUE TABLICOWE.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include "global.h"
- #include <iostream>
- using namespace std;
- int main(int argc, char* argv[])
- {
- Queue* pHead = Create(10);
- EnQueue(pHead, 5);
- EnQueue(pHead, 2);
- EnQueue(pHead, 10);
- EnQueue(pHead, 15);
- EnQueue(pHead, 20);
- DeQueue(pHead);
- for( int i=0; i<10; i++)
- cout << pHead->Tab[i] << endl;
- //cout << pHead->CurrentSize << endl;
- //cout << pHead->pHead;
- Del(&pHead);
- pHead = Create(10);
- EnQueue(pHead, 5);
- cout << "\n\n";
- for( int i=0; i<10; i++)
- cout << pHead->Tab[i] << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement