473,665 Members | 2,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Book name for multifileing in c++

Hi, i want to learn about multi-fileing in c++ . Can anyone tell me a
good reference book?.
I dont have good idea over multifileing (header files, and
resource file what they do and how it generate object of class in
it).

--
Muzammil Peer
Aug 21 '08 #1
2 1227

"Muzammil" <mu************ *@gmail.comwrot e in message
news:66******** *************** ***********@x41 g2000hsb.google groups.com...
Hi, i want to learn about multi-fileing in c++ . Can anyone tell me a
good reference book?.
I think you're talking about the fact that
a C++ program can be divided into multiple
source files. Headers (both standard and user
defined) have their text pasted into a source
file wherever an #include directive appears in
the source file. This combination is known as
a 'translation unit'. Translation units are
separately compiled, and then linked together
along with used items from the standard library
to create the final executable.

Most implementations can do the compile and link
without user intervention, or allow these steps
to be performed 'manually'.
I dont have good idea over multifileing (header files, and
resource file what they do and how it generate object of class in
it).
C++ does not have a concept of 'resource files'; you'll
need to consult support resources for your platform
(Windows?) for that.

Your compiler's documentation
(and/or its vendor's support resources) would be the best
place to learn how to build a multiple-source C++ program.

-Mike
Aug 21 '08 #2
On Aug 21, 8:48*am, Muzammil <muzammilPeer.. .@gmail.comwrot e:
Hi, i want to learn about multi-fileing in c++ . Can anyone tell me a
good reference book?.
I dont *have good *idea over *multifileing (header *files, and
resource file what *they do and how *it generate *object of *class in
it).

--
Muzammil Peer
I think there isn't a book about these things because it completely
ups to coding style that you are using. As Mike said C/C++ have the
opportunity to include files to each 'translation unit' and you can
use this feature whatever you would like to. Basically an include file
is for declare the symbols that you are using not just in your module
but in the other ones to. For example if you have a class it's
declaration could be in a separated header file to reference to this
class from an other module. If you would like see some examples or
specification about this matter you need to have a look to some
detailed code style reference like:
- http://google-styleguide.googlecode....k/cppguide.xml
- http://gcc.gnu.org/onlinedocs/libstd...k01apas03.html
etc.
Aug 22 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3300
by: Chris | last post by:
I'm wondering what is the "best" way to structure a set of info about an item, like a book or a hotel. Eg, let's say you had this info to present for each book in a collection: Title Author Publisher Edition info etc
10
2415
by: Buck Rogers | last post by:
Hi guys! Does anyone have a link to a site that provides up to date programming book reviews? I looked through the reviews at: http://www.accu.org/bookreviews/public/index.htm Unfortunately, the books reviewed were published
13
2712
by: Gabriel Reid | last post by:
Greetings, I'm looking for any books that the members of this group may have to recommend for C#. I have experience with a number of programming languages (probably most relevant would have to be Java), and have already read 'C# for Java Developers' from Microsoft Press. I feel as though I have a decent understanding of C# now, but am interested in taking it to the next level. In particular, a book with good examples is what I'm...
11
3264
by: Robert Schuldenfrei | last post by:
I am an older person trying to learn C# just for the fun of it. I am a veteran of older style languages (COBOL, FORTRAN, etc.) and I want to learn an Object Orientated language. Currently working my way through Murach's C# by Joel Murach and Doug Lowe. Since I am not taking a course, I have no one to whom I can address questions. That is why I am turning to this newsgroup. Is this the best NG for a newbie like me? Are there people out...
4
5609
by: jchimanzi | last post by:
Please can someone help in correcting the following attempt of the questions below. I have included my attempt at the problem I have been asked to write class definations which does the following among other things in C++. a) Library needs to able to get the following information about its customers: firstname, last name, address and telephone numbers. b) the library needs to be able to add customers and books to its records. Assume...
11
3585
by: fishmonger1972 | last post by:
Hi! I'm a librarian with a little PHP knowledge.. I'm trying to make a catalog from scratch for my library. I don't like the look of the current catalog so I'm trying to make a custom PHP/MySQL implementation. I can do everything I need to do except, I don't completely understand a detail. Ideally I could write this: <a href="catalogrecord.php?recordnum=4">Tom Sawyer</a>
11
2442
cjbrx3115
by: cjbrx3115 | last post by:
Hey guys- I just got this email from my friend. I'm not sure it will really work (it's a forward), so I'm askin' you people. Well, here it is: ----------------------------------------------------------------------------------------------- HOW TO PROTECT YOUR ADDRESS BOOK I learned a computer trick today that's really ingenious in its simplicity.
263
9229
by: Malcolm McLean | last post by:
The webpages for my new book are now up and running. The book, Basic Algorithms, describes many of the fundamental algorithms used in practical programming, with a bias towards graphics. It includes mathematical routines from the basics up, including floating point arithmetic, compression techniques, including the GIF and JPEG file formats, hashing, red black trees, 3D and 3D graphics, colour spaces, machine learning with neural...
1
2876
by: Lpitt56 | last post by:
I am running MS Access 2007 and I want to update an Outlook Address book from my Access Database. I started out by importing the Outlook Address Book as a linked table and it linked fine. I then built a query to filter a master contact list of contacts and I made it an append query to added to the linked Outlook address book table. However, I am getting an error message that says I do not have the necessary permissions to use this object. At...
0
8438
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8348
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8863
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8779
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4356
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2004
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.