Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old May 5th, 2008, 9:58 PM   #1
JD-Salinger
Unknown
 
JD-Salinger's Avatar
 
Join Date: Apr 2008
Location: unknown
Posts: 41
Rep Power: 0 JD-Salinger is on a distinguished road
"const" in object

I realized i am having a hard time understanding what "const" means, to generalize what i Know, it means that using "const" means ull never change the value
for example

const int maxlen=30;

that simply means that maxlen cant be altered.(correct me if i am wrong)
but as i read more examples in the book and as i try the examples in the code and compiling it(there are some typos when i compile), there are errors in the const and i realize that most of it is when using const in a object

like

List const & list = _htab.Find (str, len);
or
const List x

etc.

DO you know any online tutorials out there that would make it clear to me?... thank you for your understanding
__________________
-------------------------------------------------------------------------
I thought what I'd Do was, I'd pretend to be one of those deaf mutes
------------------------------------------------------------------------
JD-Salinger is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Object reference error Jabo Visual Basic .NET 3 Oct 5th, 2007 2:37 AM
object design question rwm C++ 21 May 11th, 2007 7:11 AM
Dealing with SNMP MIB object ids. hoffmandirt Software Design and Algorithms 0 Apr 13th, 2007 1:48 PM
Object Pascal Q: object instance as parameter KodeKid Delphi 1 May 16th, 2006 12:06 PM
Pushin an object into a vector slyadams C++ 18 Mar 30th, 2006 11:17 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:00 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC