User forums > General (but related to Code::Blocks)
2 basic C::B questions from a newbie
thomas:
Everything that is not C++ standard, i.e. all Windows headers, all C headers, and anything "old school" take .h. You should use the extension for your own headers too.
Thus, you will want: <windows.h>, <stdio.h>, <stddef.h>, <emmintrin.h> etc...
However, the C++ standard library headers have no extension, so if you use these, you want
<iostream>, <vector>, <map>, <algorithm>, etc...
killerbot:
also c headers (when using in c++ code/compiler) are without .h and you need to put a c in front of them !!
Examples :
<stdio.h> --> <cstdio>
<stdlib.h> --> <cstdlib>
and then everything is available in the std namespace !!!
temujin:
Thanks to all!!
t.
Navigation
[0] Message Index
[*] Previous page
Go to full version