Will someone please explain the common usage and function of the
include statement in writing C programs for UNIX systems?
What are .h files?
Also, how and why does the include function work if it is always
commented out? 6 1180
In article <11**********************@r34g2000hsd.googlegroups .com>,
x01001x <xe****@softhome.netwrote:
>Also, how and why does the include function work if it is always commented out?
Great troll.
-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
x01001x said:
Will someone please explain the common usage and function of the
include statement in writing C programs for UNIX systems?
Unix, DOS, OS390, whatever - headers are headers. They're interface
descriptions for code modules.
What are .h files?
Headers (see above).
Also, how and why does the include function work if it is always
commented out?
There is no include function in C.
I suggest that you read pages 33 and 82 of K&R2.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
"x01001x" <xe****@softhome.netschrieb im Newsbeitrag
news:11**********************@r34g2000hsd.googlegr oups.com...
Will someone please explain the common usage and function of the
include statement in writing C programs for UNIX systems?
Nothing to do with UNIX systems, they exist on all C implementations
What are .h files?
They are header files, containing macros, structs, typedefs, function
prototypes
Also, how and why does the include function work if it is always
commented out?
In C the # does not denote a comment (unlike in shell scripts), instead it
is kine of a marker for the preprocessor, one of parts used during
compilation.
In C comments start with /* and end with */, in the latest standard they may
also start with // and continue to the end of line (like in C++).
Bye, Jojo
Joachim Schmitz wrote:
"x01001x" <xe****@softhome.netschrieb im Newsbeitrag
news:11**********************@r34g2000hsd.googlegr oups.com...
>Will someone please explain the common usage and function of the include statement in writing C programs for UNIX systems?
Nothing to do with UNIX systems, they exist on all C implementations
>What are .h files?
They are header files, containing macros, structs, typedefs, function
prototypes
>Also, how and why does the include function work if it is always commented out?
In C the # does not denote a comment (unlike in shell scripts), instead it
is kine of a marker for the preprocessor, one of parts used during
compilation.
In C comments start with /* and end with */, in the latest standard they may
also start with // and continue to the end of line (like in C++).
Bye, Jojo
Why do you other people's homework for free?
You do NOT do them a service. They have to learn the
stuff ok?
"jacob navia" <ja***@jacob.remcomp.frschrieb im Newsbeitrag
news:46***********************@news.orange.fr...
Joachim Schmitz wrote:
>"x01001x" <xe****@softhome.netschrieb im Newsbeitrag news:11**********************@r34g2000hsd.googleg roups.com...
>>Will someone please explain the common usage and function of the include statement in writing C programs for UNIX systems?
Nothing to do with UNIX systems, they exist on all C implementations
>>What are .h files?
They are header files, containing macros, structs, typedefs, function prototypes
>>Also, how and why does the include function work if it is always commented out?
In C the # does not denote a comment (unlike in shell scripts), instead it is kine of a marker for the preprocessor, one of parts used during compilation. In C comments start with /* and end with */, in the latest standard they may also start with // and continue to the end of line (like in C++).
Bye, Jojo
Why do you other people's homework for free?
You do NOT do them a service. They have to learn the
stuff ok?
This really didn't look like homework. Just like a clueless newbie.
jacob navia wrote about Joachim Schmitz answer:
Why do you other people's homework for free?
You do NOT do them a service. They have to learn the
stuff ok?
Do you think that the non-sense about preprocessing directives as comments
is part of a homework?
--
You can contact me at <ta*****************@yahoDELETETHATo.fr> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: steve |
last post by:
I am quite frustrated with php’s include, as I have spent a ton of
time on it already... anyone can tell me why it was designed like this
(or something I don’t get)?
The path in include is...
|
by: Tom Lee |
last post by:
Hi,
I'm new to .NET 2003 compiler. When I tried to compile my
program using DEBUG mode, I got the following errors in the
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
\include\xdebug...
|
by: Derrick Coetzee |
last post by:
It seems like, in every C source file I've ever seen, there has been a
very definite include order, as follows:
- include system headers
- include application headers
- include the header...
|
by: zolli |
last post by:
Hi,
I've been banging my head against this for a while now. Hoping someone
here can shed some light on what's going on.
On including stdlib.h in a file, I'm seeing the following errors:
...
|
by: David Mathog |
last post by:
One thing that can make porting C code from one
platform to another miserable is #include. In particular,
the need to either place the path to an included file within
the #include statement or to...
|
by: Minh |
last post by:
I've just installed VS.NET 2003 on my Athlon XP 1800+. However I couldn't
get any project with STL includes to compile even if I create a new empty
project (and added #include <string>). It gave me...
|
by: ya man |
last post by:
when i use #include <iostream.h> in some files
i get lots of error messages of the kind 'ambiguous symbol
this is solved when i use #include <iostream
why is that ? and can i use #include...
|
by: Arpi Jakab |
last post by:
I have a main project that depends on projects A and B. The main project's
additional include directories list is:
...\ProjectA\Dist\Include
...\ProjectB\Dist\Include
Each of the include...
|
by: Jon Rea |
last post by:
I am currently cleaning up an application which was origainlly hashed
together with speed of coding in mind and therefore contains quite a few
"hacky" shortcuts.
As part of this "revamping"...
|
by: Giancarlo Bassi |
last post by:
Please, what are here the 11 include files (found over the internet)?
*/mozzarella.c /*
#include
#include
#include
#include
#include
#include
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |