I have renamed the thread ;)Quote:
Originally Posted by paradoxresolved
Printable View
I have renamed the thread ;)Quote:
Originally Posted by paradoxresolved
I've heard this argument before (usually from C programmers), but it is easily invalidated.Quote:
Originally Posted by paradoxresolved
You use fopen(), fclose(), along with passing this FILE thing to various functions, right? Isn't that a "black box" in that you don't know what's going on inside?
How about qsort()? What about sqrt()? Do you know what algorithms are used to compute sin(), log()? Are these "black boxes"? How about a simple strcpy()? How about print(), scanf()? More black boxes.
What about directory traversing functions? In Windows you have GetFirstFile and GetNextFile. More black boxes.
In 'C', you've been using black boxes all the time. Using a vector, IMO is no different than using FILE, fopen(), printf(), or any of the other structures and functions that you normally use in programming.
Some group of people coded the std::vector, some group of people also coded fopen(). I don't know why so many (again usually 'C' programmers going to C++) put the trust that fopen() or printf() works without any hint of doubt, but a vector or list brings all sorts of doubt (even if the same people coded the entire library, including the C and C++ libraries).
Regards,
Paul McKenzie