• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Need help (new to C++)

Can any one tell me what is different
bettwen the #include " "  and
#include < >

I will apprichate if some one will
send me some good url were i can get
Some help with C++ developer 6 !!

Thanks Neta !!

0
neta
Asked:
neta
  • 2
  • 2
1 Solution
 
abdijCommented:
Hi Neta,
The <> is normally used with System includes like <afx.h>, <stdio.h> etc.
The include library path will be first searched for the <> header files and then the Windows path and then the Project path.

The "" is normally used for user headers. Here the project path is first searched.

They can be used interchangably. May be less efficient. Since more directories have to be scanned.

Hope your doubt is solved.
Regarding the URL
www.codeguru.com
has fantastic codes and documents on C++.

I will get back with other URLs.

Give mailid.
Mine is abdij_b@hotmail.com
Feel free to mail questions.
thanx
0
 
netaAuthor Commented:
how can i include my files what should
i should i configure my project to do so ( i am using developer 6 c++)


10x




0
 
KangaRooCommented:
Not entirely correct because it depends a bit on your compiler. Often it comes down to:
#include <header.h>
   searches the include path specified by the project, on
   the command line when invoking the compiler, or
   by an environment variable. Some compilers will
   also look in directory which is searched for:
#include "header.h"
   searches the 'current directory', ie the one where
   the file is located that is currently compiled. Apparently some compilers will
   also look in other directories.
0
 
KangaRooCommented:
Although it looks complex, in practice it comes down to (as abdij said):
1. When including library headers, use #include <header.h>
2. When inlcuding user headers, use #include "header.h"

abdij, ben jij Nederlands?
0
 
abdijCommented:
Hi Neta,
 Hope this is what you wanted.

Go to the Tools->Option->Directory.
There will be a combo "Show Directory For". Selcet the Include Files from the Combo. Now in the list view below you will already find the some include directories already configured. To include yours Doble Click on the list view, On the using the Right button provided in the view browse to your directory where the header file is available. Say Ok. Now he compiler will also search for your headers from this directory too.

Thanx.

Hi Kangaroo,
 I agree with you.
BTW,I am Abdij Bhat from India not the abdij from Netherlands.
Thanx
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now