Hello everyone.
I have one txt file with data placed in this mode:
3
4
0
0
3
22
26
8
4
16
18
16
18
…
I want put them into a queue.
how can I do?
Hello everyone.
I have one txt file with data placed in this mode:
3
4
0
0
3
22
26
8
4
16
18
16
18
…
I want put them into a queue.
how can I do?
In reply to vinzciotoli:
int file, data, queue[$];
file = $fopen("data_file.txt","r");
while ($fscanf(file,"%d",data)) queue.push_back(data);