Quote:
But it also has library of fstream.h . How to change such codes to C programming
You have to use
fprintf, fwrite, fread
instead of corresponding
fstream
methods and operators (see
fstream - C++ Reference[
^] ). Since the code contains
C
-like function for console
I/O
, probably there is no much use of insertion and extraction operators and your task is relatively simple.