Thanks for the help, I figured it out.
Printable View
Thanks for the help, I figured it out.
Well two things
%ch is not a format specifierCode:fprintf(outpt,"%ch",&ch);
2. Why are you messing with characters when the program reads in integers?
I was just trying to go by an example of what my instructor gave me. He used that in his example, and I didnt understand the significance. I tried it with %d, but with no results. The output file ended up with 4 or 5 random numbers in it.
This is what I get when changing to %d.
1244624
I think im close, but am still stuck.
Please do not delete the information from your posts when your problem is solved. No one can learn from your problem in future.