Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "circularBuffer.h"
- int main()
- {
- struct circularBuffer buff;
- bufferInitialization(&buff, 6);
- addElement(&buff, 9);
- addElement(&buff, 12);
- addElement(&buff, 34);
- addElement(&buff, 62);
- addElement(&buff, 4);
- addElement(&buff, 51);
- //unosimo sedmi
- addElement(&buff, 35);
- printBuffer(&buff);
- deleteElement(&buff);
- printBuffer(&buff);
- deleteElement(&buff);
- deleteElement(&buff);
- addElement(&buff, 1);
- addElement(&buff, 2);
- addElement(&buff, 3);
- //unosimo sedmi
- addElement(&buff, 99);
- printBuffer(&buff);
- deleteAll(&buff);
- deleteElement(&buff);
- printBuffer(&buff);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement