+ 3

What is the difference between #include and usingnamespace? Why we don't use <canio.h> any more?

29th Mar 2018, 3:07 PM
Mahdi._. Xy
Mahdi._. Xy - avatar
5 Antworten
+ 2
#include allows access to other C/C++ files. Using namespace removes the need to explicitly state from which namespace code came from. e.g. std::cout (without using namespace std;) and cout (with using namespace std;) this can cause problems.
29th Mar 2018, 3:14 PM
TurtleShell
TurtleShell - avatar
0
Thanks guys...
30th Mar 2018, 8:17 AM
Mahdi._. Xy
Mahdi._. Xy - avatar