Re: [Dev-C++] dynamic allocation and structs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Carlos d. M. <cg...@wo...> - 2002-10-25 10:20:10
|
Some things about pasts messages, not very important. The "or when exiting the scope", I wrote it, sorry, I was answering other question, it was an error when clicking at th mail I wanted to answer, now I don't remember which mail I was answering. One of you said: If array[0] is logical think there is array[1]. That's right in programming, not in reality. Reality: White House is whiteHousesArray[0]. But there is no a second White House If I say "I am the third son of my parents" you know there are the second and the first sons, but you don't know if there is a fourth, or we have to suppose there are a infinity? You can know previous, not the following. Programming: If there is not array[1], why bother writing array[0], when you can say *array? Although vector has the mathematical meaning of one dimensional array, and we were talking about C, it would be better leave 'vector' for the STL container, because that's our (or my) first thought when see 'vector' here, so I read understanding one thing and in the middle of the message, or some messages later, I notice I've misunderstood everything, or simply I expected other thing. I was tempted to not read this thread of messages, losing some interesting things. |