Hi,
is there a way to re-initilise an array to allow it to be empty again ..
this is what i have done, but my output, doesnt clear it..
this is my output, from fileCode:for(j=0; j<MAX_LEN; j++) { buff[j] = ' '; //flush the strings. . printf("buff[%c] - buff", buff[j]); }
Customer No: Fri May 21 23:58:09 2004
Customer 100: deposit
Arrival time: Fri May 21 23:58:09 2004
Customer 2112 : deposit
Arrival time: Fri May 21 23:58:09 2004
Customer 3112 : withdraw
Arrival time: Fri May 21 23:58:09 2004
Customer 4112 : deposit
Arrival time: Fri May 21 23:58:09 2004
Customer 5112 : withdraw
Arrival time: Fri May 21 23:58:09 2004
the input is
100 deposit
2112 deposit
3 withdraw
4 deposit
5 withdraw
so basically 3112 is from the old inputs . .
Please help
Matt



LinkBack URL
About LinkBacks


