Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Ivor Horton's Beginning Visual C++ 2013
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Ivor Horton's Beginning Visual C++ 2013
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2013 by Ivor Horton; ISBN: 978-1-118-84571-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2013 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 21st, 2019, 02:30 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 33%
Activity: 33% Activity: 33% Activity: 33%
 
Join Date: Aug 2019
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re Exercise 6-10 Extended Parameters Passed

Hi,

Firstly this is a great exercise to get one's head around! The query I have is the passing of parameters to the functions.

The first two functions receive the pointer to the buffer as char* str but the subsequent functions which are called by these first two receive the pointer to the position in the buffer as const char* str.

Can someone please help me understand why the subsequent called functions receive the pointer as const?

Thanking you in anticipation for any advice.

Regards, Necuima
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 17 extended credit mikeashields@hotmail.com BOOK: ASP.NET 4 24-Hour Trainer 2 January 31st, 2012 08:05 AM
TreeView extended chinoo ASP.NET 2.0 Basics 0 February 16th, 2007 05:41 PM
How to check the parameters passed to web method? karveajit ASP.NET 1.0 and 1.1 Professional 3 December 20th, 2006 05:55 PM
how can i get parameters passed to a vb exe teominator Beginning VB 6 4 January 24th, 2005 12:11 AM
sql parameters not passed or received redeye2 Pro VB.NET 2002/2003 1 November 5th, 2004 07:10 PM



All times are GMT -4. The time now is 03:04 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.