#include <stdio.h>
#include <string.h>
char* docs[100] = {};
int f = 0;
int r = 0;
void enque(char* x){
docs[r++] = x;
}
char* deque(){
return docs[f++];
}
int empty(){
return r==f;
}
int size(){
return r-f;
}
int main() {
enque("Doc_A");
enque("Doc_B");
enque("Doc_C");
enque("Doc_D");
while(!empty() ){
printf("%s\n",deque());
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: