469,926 Members | 2,330 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

what is < > & " "

Hello, I want to ask that what is the difference between to define
#include<stdio.h> and
#include" filename.c"
Mar 1 '07 #1
3 1506
wazzup
25
I'm newbie with C++ too, correct my if I'm wrong

#include<stdio.h> <== Include file stdio.h in the library of C Header File
#include" filename.c" <== Include file filename.c with a specific path of that file
Mar 1 '07 #2
wazzup
25
If you want to know what stdio.h does, read the Reference here
http://www.cplusplus.com/reference/clibrary/cstdio/
Mar 1 '07 #3
Banfa
9,065 Expert Mod 8TB
Using angle brackets in your #include <...> causes the compiler to only search the include path when looking for a header file.

Using quotes in your #include "..." causes the compiler to search in the same directory as the current file first then search the include path when looking for a header file.

Generally speaking put your own headers in "..." and library headers inb <...>
Mar 1 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Francesco Moi | last post: by
1 post views Thread by Christian Schmidbauer | last post: by
4 posts views Thread by matatu | last post: by
2 posts views Thread by Donald Firesmith | last post: by
2 posts views Thread by Francesco Moi | last post: by
11 posts views Thread by Les Paul | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.