You are here:
Advertisement
| Rating(1-10) | Knowledgeability = 10 | Clarity of Response = 10 | Politeness = 10 |
| Comment | Brilliant! God it seems so easy when you see the solution (by this I mean the push_back instead of just = ). I am sure this is ridiculously basic for you but in the beginning I would say programmers may have the proper logic behind their problems but the syntax/method is badly deficient. Not that you might care much I suppose but to give you a proper reply. Once I sent you the code, I realized Vec b was not set to const. So I changed that. Also, a stock will always trade the day that the index is open - stocks in the major indces are very liquid names and trade everyday. Even if there would be a corporate action that would prevent a stock to trade for a given day, my data provider would automatically provide the previous closing day for that non-trading day. So, in effect, they will always be the same length. Thanks for the explanation on post and pre increment. I will change that as well. I do have the Josuttis book. I looked into it and to me it seems too advanced. I.e. once you really know what you are doing, it points to subtleties of the language and how to get the best of it. I am probably totally wrong on this but I have not yet figured out how to use it efficiently. Your function using the other headers is neat. I understand your explanation of it clearly but will have to read about it a bit more. Would this be faster or just cleaner code? To summarize, this is exactly the type of response I was looking for. Not just the solution but the reasoning behind it. I read a lot about vectors and references and browsed the web for days. I learned a great deal today because of you. A gigantic thanks to you. I can nominate you for Volunteer of the Month but you seem already maxed out of question. Not quite sure if it will help you? You can certainly expect top ratings from me. Best, Eric. | ||
I am a software developer with more than 15 years C++ experience and over 25 years experience developing a wide variety of applications for Windows NT/2000/XP, UNIX, Linux and other platforms. I can help with basic to advanced C++, C (although I do not write just-C much if at all these days so maybe ask in the C section about purely C matters), software development and many platform specific and system development problems.
My career started in the mid 1980s working as a batch process operator for the now defunct Inner London Education Authority, working on Prime mini computers. I then moved into the role of Programmer / Analyst, also on the Primes, then into technical support and finally into the micro computing section, using a variety of 16 and 8 bit machines.
Following the demise of the ILEA I worked for a small company, now gone, called Hodos. I worked on a part task train simulator using C and the Intel DVI (Digital Video Interactive) - the hardware based predecessor to Indeo. Other projects included a CGI based train simulator (different goals to the first), and various other projects in C and Visual Basic (er, version 1 that is).
When Hodos went into receivership I went freelance and finally managed to start working in C++. I initially had contracts working on train simulators (surprise) and multimedia - I worked on many of the Dorling Kindersley CD-ROM titles and wrote the screensaver games for the Wallace and Gromit Cracking Animator CD.
My more recent contracts have been more traditionally IT based, working predominately in C++ on MS Windows NT, 2000. XP, Linux and UN*X. These projects have had wide ranging additional skill sets including system analysis and design, databases and SQL in various guises, C#, client server and remoting, cross porting applications between platforms and various client development processes.
I have an interest in the development of the C++ core language and libraries and try to keep up with at least some of the papers on the ISO C++ Standard Committee site at http://www.open-std.org/jtc1/sc22/wg21/.
Education/Credentials

©2012 About.com, a part of The New York Times Company. All rights reserved.