Originally Posted by
182
Hi sorry about that, is there an advantage to using the #include <cstdlib> instead of #include <stdlib.h> or is it just because the #include <cstdlib> is the standard?
As long as your compiler supports the new headers, I would always use them. Even if you see an example program with the old headers, before compiling change them to the new ones. Some C++ library headers are:
Code:
<iostream>
<fstream>
<iomanip>
<string>
<sstream>
<vector>
<iterator>
<algorithm>
<bitset>
<list>
<deque>
The C library headers with a 'c' added to the front are:
Code:
<cstdlib>
<cstdio>
<cmath>
<cstring>
<ctime>
<cctype>
Here's a decent library reference: www.cppreference.com