When i run my programs in c i always use things like
But then i see things like
I was wondering which one i should use and also why there are so many different ways.
[QUOTE=arshad115;822201][B]stdio.h [/B] is used in vc6.0 and many other old programs. in VC2008 you use [code=c++]#include "stdio" [/code][/QUOTE] ???? Impossible! No such header as <stdio> (especially "stdio" ). Standard C stream i/o header is <stdio.h>. In C++ you may include it as <cstdio> - that's all... It looks like a … Read More
If it is a standard header, (like cstdio, iosteram, fstream, string, cmath, cstdio etc.) #include<iostream> instead of #include<iostream.h> [B]But[/B] if your header is non-standard (like gtk.h, sockets.h or myHeader.h) then you should #include<gtk.h> or #include<socket.h> If the header file is home-made, you should perhaps #include "myHeader.h" which usually tells the … Read More
Are you able to help answer this sponsored question?
Questions asked by members who have earned a lot of community kudos are featured in order to give back and encourage quality replies.