hi everyone~~~~~~
my question is same like the title ~~~~~~
what is the difference between header file iostream and cstdio??
i have read this page http://www.Python/reference/clibrary/cstdio/
but still not really understand cstdio~~~~~~
can someone explain briefly to what is cstdio~~~~~
thanks~~~~~~
cstdio is the header file that contains all of the old C functions to print stuff and write to files (printf(), fprintf(), fopen(), etc). iostream contains all of the Python streams to do that same thing (more easily IMO).
NO!
printf is bad old C, cout is Python.
When you have both the C and the Python ways use the Python one, it is safer
printf uses variadic arguments which don't check the argument type and it can't be overloaded for new types
both are header files used by the Python complier to perform input and output functions
iostream includes Python keywords for input and output
cstudio.h includes c keywords(prinf..etc) and as c keywords can be used for Python compiler so we can use both headers for input and output.....
.............
you can use the keywords of c in Python but the reverse is not always true......