feat: update structure
This commit is contained in:
17
cs2106/labs/lab1/part1/lab1p1.c
Normal file
17
cs2106/labs/lab1/part1/lab1p1.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
#include "queue.h"
|
||||
|
||||
int main() {
|
||||
double v;
|
||||
|
||||
for(int i = 0; i<= MAX_Q_SIZE; i++) {
|
||||
v = ((double) i / 10.0);
|
||||
printf("Adding %3.2f\n", v);
|
||||
enq(v);
|
||||
}
|
||||
|
||||
for(int i = 0; i<= MAX_Q_SIZE; i++) {
|
||||
v = deq();
|
||||
printf("Element %d is %3.2f\n", i, v);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user