![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You don't need a compelling reason to USE them in order to learn them The compelling reason to LEARN them is that you don't know C/C++ until you have. Let me repeat Riddle's suggestion: check out the link in my sig.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#22 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
oh, here's another reason...managing data on the "heap"
when you make variables and arrays and crap on the stack they have pretty local scope. if you want to create and manage objects and variables on stuff that are fairly permanent (at least while the program is running) you have to instantiate them differently (see "new" and "delete") and access them a little differently, but they're THERE. they don't pop in and out of existence with function calls and such. for example a local variable if set to an initial value and then changed in some function, when called on again later outside the function (after the function has returned) will STILL HAVE that initial value because of the way you declared it...the compiler was like alright, here we go, and pulls out a "fresh" set of variables and such every time. if you want to manage "permanent" data you have to declare them on the heap and access them with pointers and such. or i may be kinda off-base, but not much ( i haven't messed with the damn things in a while).
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|