Hey, now i know your not sposed to flush(stdin) nstuff, but can someone give me an alternative please. I have used fscanf to read many doubles to a dynamic memory allocated pointer. I have then called the function in main and now the program is complete. all i want is for the program to pause before it exits so I chucked in a getchar(); at the end but obviously it skips it because of the return carriage in stdin or whatever happens there.
Is there something simple to do to get rid of this problem
Thanx guys