i want to write a program that takes command line arguments. it should read a input file for eg:
5
enq 5 3
enq 6 4
deq
enq 4 5
enq 7 2
deq
print
where first line is always size,enq N P means insert N with priority P,deq means delete N with highest priority and print means display queue.
the program should store output in a file output.txt
please help