Heh, I suspected Flashman! :-) It's a kind of self-tagging meme that spreads by its own curiously interesting results. I was doing it before I even got tagged.
Most professional C/C++ programmers would find the second version easier to read and understand. In fact, the pointer version is the way routines of this sort are commonly written in C/C++.
Pointers may be arrayed like any other data type.
Yeah, I'm a computer geek. No, I do not program very well in C++. Though one of these days I'm going to try and teach it to myself. I took it as a college course just before switching my major from Computer Science to Multimedia Studies, and the guy teaching it assumed you already knew everything there was to know about programming, and then tried to fail you. Kind of turned me off to programming for a while.
May I suggest you continue learning it, provided you have some way to make use of it? I lived and breathed C++ for ten years and found it to be magnificent. Perfect? No, just magnificent.
I'm not sure I'd ever need it except for personal use, though it might not be bad to have in the bag of tricks just in case. My new major still involves some programming, but it's not nearly on the same level; it consists mostly scripting languages such as Lingo to create multimedia titles in programs like Director. Sometimes I use Java, but not very often (about the most complex thing I've programmed in that was a BST database).
Its a bit of a unique major, actually, one part CS and one part art. I'm a little worried it's not enough of either to get me a job, but it is at least interesting.
Note:
All avatars and any images or other media embedded in comments were hosted on the JS-Kit website and have been lost;
references to haloscan comments have been partially automatically remapped, but accuracy is not guaranteed and corrections are solicited.
If you notice any problems with this page or wish to have your home page link updated, please contact John Hardin <jhardin@impsec.org>
JS-Kit/Echo comments for article at http://smallestminority.blogspot.com/2008/04/memeage.html (5 comments)
Tentative mapping of comments to original article, corrections solicited.
Heh, I suspected Flashman! :-) It's a kind of self-tagging meme that spreads by its own curiously interesting results. I was doing it before I even got tagged.
Since I don't have a blog to do this in...
Most professional C/C++ programmers would find the second version easier to read and understand. In fact, the pointer version is the way routines of this sort are commonly written in C/C++.
Pointers may be arrayed like any other data type.
Yeah, I'm a computer geek. No, I do not program very well in C++. Though one of these days I'm going to try and teach it to myself. I took it as a college course just before switching my major from Computer Science to Multimedia Studies, and the guy teaching it assumed you already knew everything there was to know about programming, and then tried to fail you. Kind of turned me off to programming for a while.
Also, the book was titled "C++: The complete Reference" by Herbert Schildt.
May I suggest you continue learning it, provided you have some way to make use of it? I lived and breathed C++ for ten years and found it to be magnificent. Perfect? No, just magnificent.
I'm not sure I'd ever need it except for personal use, though it might not be bad to have in the bag of tricks just in case. My new major still involves some programming, but it's not nearly on the same level; it consists mostly scripting languages such as Lingo to create multimedia titles in programs like Director. Sometimes I use Java, but not very often (about the most complex thing I've programmed in that was a BST database).
Its a bit of a unique major, actually, one part CS and one part art. I'm a little worried it's not enough of either to get me a job, but it is at least interesting.
Note: All avatars and any images or other media embedded in comments were hosted on the JS-Kit website and have been lost; references to haloscan comments have been partially automatically remapped, but accuracy is not guaranteed and corrections are solicited.
If you notice any problems with this page or wish to have your home page link updated, please contact John Hardin <jhardin@impsec.org>