![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Unknown
Join Date: Apr 2008
Location: unknown
Posts: 79
Rep Power: 1
![]() |
"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 ------------------------------------------------------------------------ |
|
|
|
|
|
#2 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 532
Rep Power: 4
![]() |
Re: "const" in object
__________________
I Like Ike. Vote for Dwight Eisenhower this November. --This message brought to you by the the Procrastinators Club Of America. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |