Hi guys,
I know that in C++ we don't add .h after the include file, to work with the stanard library.
How doe's it work in C?
Should I include:
stdio.h
cstdio.h
stdio ??
or soething else ...
Many thanks
Hi guys,
I know that in C++ we don't add .h after the include file, to work with the stanard library.
How doe's it work in C?
Should I include:
stdio.h
cstdio.h
stdio ??
or soething else ...
Many thanks
C++ removes the .h and prefixes c. So cstdio in C++ would be stdio.h in C.
My best code is written with the delete key.
If you're working in C++ include <cstdio> to use the C stream library. There really isn't a reason to do this I think apart from special circumstances or the flawed belief that C line-buffered I/O is faster than C++'s line-buffered I/O.
If you're working in C, the library is <stdio.h>
When C++ adapted C's standard library, the older header files were renamed using an initial c and no extensions.