Stanford iTunes CS106B Library Discrepancy Question - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Programming Languages & Scripting (/forum-8.html)
+--- Thread: Stanford iTunes CS106B Library Discrepancy Question (/thread-10227.html)
Stanford iTunes CS106B Library Discrepancy Question - gallaghertm - Aug 4, 2012 12:23 PM
I am using the free iTunesU classes from Stanford to learn how to program. I worked through CS106A in Java and have now moved on to CS106B using C++ before I end with CS198 so I can begin iOS development. It's been a good learning path but I have discovered a discrepancy between the CS106B C++ libraries as discussed in the lectures (dated 2008) and the current material on cs106b.stanford.edu.
I am using Xcode 4.4 and download the assignments from cs106b.stanford.edu. The lectures make reference to a genlib.h header file that the course reader does not. The course reader uses #include namespace std; instead.
Can anyone shed some light on why Stanford moved away from using genlib.h and what the real difference is between using the .h and the namespace line? I am going to have to translate the examples in the lecture into something I can actually use so it would be beneficial to understand the true difference.
RE: Stanford iTunes CS106B Library Discrepancy Question - PowerMacX - Aug 4, 2012 01:09 PM
genlib.h was a custom header. See this explanation:
RE: Stanford iTunes CS106B Library Discrepancy Question - gallaghertm - Aug 4, 2012 03:02 PM
(Aug 4, 2012 01:09 PM)PowerMacX Wrote: genlib.h was a custom header. See this explanation:
Thanks. I appreciate the quick reply. I guess I'm mostly curious why the Stanford CS department decided to move away from using their genlib.h library file and went to using namespace std instead. This was probably the result of a deliberate change in teaching this small part of C++ and I was curious why they chose to do so.