473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Does #include "..." mean it's a user defined header file?

I am a novice programmer. I got half implemented C++ coding from customer site. I need to proceed implementing that coding.
At that code, there is #include "logger.h"
header file.
My question is that "logger.h" is system defined header file? I mean ""logger.h" is supported by library such as <windows.h> or <iostream.h>?"
Or the developer must write "logger.h" by themselves?
According to my idea, " " means user defined header file. Am I right?
Thanks in advanced.
Nov 2 '10 #1
4 2843
Meetee
931 Expert Mod 512MB
Check this and this
Nov 2 '10 #2
newb16
687 512MB
I mean "logger.h" is supported by library such as <windows.h> or <iostream.h>?"

iostream and windows.h are not libraries, they are header files. logger.h is not a part of standard C++ library. It's either part of a project itself or some third-party components. Comment it and see what is missing.
Nov 2 '10 #3
Banfa
9,065 Expert Mod 8TB
#include "..." as opposed to #include <...> does not mean user defined.

It tells the compiler to check the directory of the current file for the included file first before checking for files in the standard include path.

On the other hand using <> tells the compiler to ignore the directory of the current file and just check in the standard include path.

It is normal (but not required) to use "" for headers that are part of the program source and <> for headers that are part of the system.
Nov 2 '10 #4
donbock
2,426 Expert 2GB
I don't think the C Standard requires a compiler to treat the two forms of #include differently; so you can't count on it to mean anything.
Nov 4 '10 #5

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

Similar topics

1
by: Darran Edmundson | last post by:
I was playing around with the inspect module the other day trying to write a quick and dirty "smart" logger. By this I mean that writing a message to the global log would also yield some info...
5
by: SenthilSS | last post by:
My application produces XML Data files which have XML namespace qualified XML elements (nodes), but the namespace itself is not declared in the data file. My task is to read these data files in a...
3
by: Phil Sherman | last post by:
What is the relationship between the snapshot elements: Log pages written Number write log IOs Number partial page log IOs There doesn't appear to be any information in my PDF System monitor...
2
by: Jeremy S. | last post by:
By default, Web.config has the following section: <compilation defaultLanguage="c#" debug="true" /> note that debug="true" There is a comment - also in the default Web.config - that states...
24
by: Agnes | last post by:
I need to disable the exit button in the form . However, the min. and max. button need to keep it How ? Thanks a lot From Agnes
1
by: robert | last post by:
some packages like paramiko use the logging. I get this messages: "No handlers could be found for logger xxx" on stderr I don't want to deal with this logging at all so far - its useless in this...
8
by: solarin | last post by:
Hi all. I'm writting a logger class to write all the debug/info/warning/error messages in a file. Every time a class needs to send any message, should send a code (int) and a message (string)....
11
by: eBob.com | last post by:
I have this nasty problem with Shared methods and what I think of as "global storage" - i.e. storage declared outside of any subroutines or functions. In the simple example below this "global"...
0
by: panam | last post by:
hi when i type the followind commands igot the error as under.. plz help me wats the problem.... C:\axis>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://loc...
2
by: David Rothabuer | last post by:
I work with an integration engine that is java based. All my scripting is javascripting and I've run into a problem that I can't find a solution to. I am getting this error when I attempt to read...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.