Addison-Wesley Exceptional C++ 47 Engineering Puzzles Programming Problems and Solutions (0201615622) Logo
l
lungany Posted on Feb 27, 2014
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

What is the importance of referencing? - Addison-Wesley Exceptional C++ 47 Engineering Puzzles Programming Problems and Solutions (0201615622)

1 Answer

Larry Symms

Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Hot-Shot:

An expert who has answered 20 questions.

Corporal:

An expert that has over 10 points.

  • Expert 77 Answers
  • Posted on Mar 26, 2014
Larry Symms
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Hot-Shot:

An expert who has answered 20 questions.

Corporal:

An expert that has over 10 points.

Joined: Aug 01, 2009
Answers
77
Questions
1
Helped
14794
Points
208

Quick summary: there is data and there is a reference to the location of that data (also known as a pointer).

A pointer is a number which is a location in the stack. The stack is a chunk of memory that is allocated to the application either through memory or virtual memory (hard disk). So if your pointer value is 1000 then the data for the object starts at location 1000 of the stack. The value stored at that pointer can change while the pointer value remains 1000. It could be one byte, or 1000 bytes. Referencing allows you to interact with one instance of a value from multiple places. For example you could have 2 threads running that are doing 2 different tasks in a loop. You can pass a reference to a value that will shut down the threads when the application is closing something like this:

bool bShutdownSignal = false;
startThreadOne(&bShutdownSignal);
startThreadTwo(&bShutdownSignal);

If at any time bShutdownSignal is set to true both threads could read the value and shut down. Now if you passed by copy there would be 3 different pointers to bShutdownSignal and as such 3 potentially different values.

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

Shopmate tools

I'm not familiar with the brand. Check some older delta band saws for cross referencing. Taiwan imported band saws actually look like Delta bandsaws.
Jun 29, 2014 • Saws
0helpful
1answer

Reset

You referenced a variable that is not currently defined. For example, you referenced a stat variable when there is no current calculation because a list has been edited, or you referenced a variable when the variable is not valid for the current calculation, such as a after Med-Med.
0helpful
1answer

Please download windows xp operating system beacause Prf file is not supported in Windows Vista

PRF extension - (Outlook Profile File)
User profile referenced by Microsoft Outlook that contains user information and preferences; includes mail account settings, signatures, references to mail folders, and other settings; when Outlook imports a PRF file, the user profile settings are immediately updated.

PRF files can also be created using Microsoft's Office Resource Kit; the files can then be deployed to multiple systems using the Custom Installation Wizard (CIW) or other maintenance wizard included with the Office Resource Kit.


You have to install microsoft outlook on Vista to be able to read the file.
0helpful
1answer

Unable to Import CD to MP3 Player

You can use windows media player to rip the CD to mp3, then plug in your mp3 player to computer and sync it with windows media player, then the music should be uploaded.
If you want to know how to rip cd to mp3, this guide may help you
http://www.top5soft.com/tutorial/how-to-rip-cd-to-mp3.html
0helpful
1answer

Module not found in Access 2003

Is it used as a subform in another form? Also does it have any events which are referenced by other forms?
0helpful
1answer

Trouble importing video from Sony Digital Handycam onto PC

try this link.

They cross-referenced it and found that the DCR-TRV19 camera used the same driver as the DCR-TRV280. I took the download off Sonys website and it worked perfectly.
http://www.camerahacker.com/Forums/Video%20Camera/Sony/Sony_DCR-HC36_drivers.files.hidden/USBDRVEN.EXE
0helpful
1answer

Natural Science Industries, Ltd., Make Your Own Beer-Complete Beer making Kit.

Sorry no one will have a manual for that imported off brand telescope.

Sorry--
Not finding what you are looking for?

119 views

Ask a Question

Usually answered in minutes!

Top Addison-Wesley Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Brad Brown

Level 3 Expert

19187 Answers

Cindy Wells

Level 3 Expert

6688 Answers

Are you an Addison-Wesley Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...