IT Community - Software Programming, Web Development and Technical Support

Difference between#include< >and#include" "

This is a discussion on Difference between#include< >and#include" " within the C and C++ Programming forums, part of the Software Development category; Hui Buddies can anyone explain the difference between#include<>and#include" "...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-01-2007, 12:51 AM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Wink Difference between#include< >and#include" "

Hui Buddies can anyone explain the difference between#include<>and#include" "
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-01-2007, 11:41 PM
Venkat Venkat is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 350
Venkat is on a distinguished road
Thumbs up Re: Difference between#include< >and#include" "

include "" searches your local directories first, it's for files in your project. include <> searches your external include dirs first, it's for including library stuff like iostream, list, vector, etc.

I believe either will work, but in theory you should get in the habit of using "" for local files and <> for library files.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between "vector" and "array"? Sabari C and C++ Programming 1 07-24-2007 04:33 AM
Difference between "printf" and "sprintf". Sabari C and C++ Programming 1 07-23-2007 06:23 AM
What is the difference between "calloc" and "malloc"? Sabari C and C++ Programming 1 07-23-2007 06:08 AM
Difference between "APPLET" and "APPLICATION" prasath Java Programming 1 07-17-2007 07:51 AM
Difference between a "assignment operator" and a "copy constructor"? vigneshgets C and C++ Programming 2 07-12-2007 05:30 AM


All times are GMT -7. The time now is 04:29 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0