Join Bill Weinman for an in-depth discussion in this video Using the exercise files, part of C++ Building a String Library.
- The exercise files for this course are included with your basic lynda.com membership. If you are a lynda.com member then you have access to the exercise files used for this title. Copy the ExerciseFiles folder to a location where you can find it on your system. I've copied it to the desktop on this system. Wherever you put it just make sure you can find it. All of the exercise files for this title are in this folder. As you use each of files, I suggest you make a working copy so you may easily revert back to the original if you need to.
This course requires a development environment with a C++11 compliant compiler. I'm using a Mac with Xcode and Apple's Xlint LLVM-based compiler for the demonstrations in this course. You may just as easily use Windows or any other operating system with a C++11 compliant compiler. Please see my course C++ Essential Training on the lynda.com Online Training Library for instructions on how to use these exercise files with either Xcode or Microsoft Visual Studio.
These are the movies you're looking for here, C++ Essential Training, Using Xcode with the exercises or Using Microsoft Visual Studio with the exercise files. These instructions will also apply to this course you're watching now. The exercises in this course use the BWString and BWUTest classes which are included in the exercise files. You'll need to include these classes in your project as well as the current exercise file for whatever you're working on. For example, here in Xcode, you see I've simply copied from the exercise files all of these files, BWString.cpp, .h and BWUTest.cpp and .h, into my working project along with this particular exercise file that I'm working on.
When you're done with a particular movie, you can delete your working copy of the exercise you're working on while leaving these other files in the project for the next lesson. In Microsoft Visual Studio, you do this by selecting Add Existing Item like this, so I'm right clicking on Working project there and I select Add and Existing Item or I can use shift + alt + A. I'm just going to select all of these files for BWString class and the BWUTest class and I'm going to add them to my project.
And there they are. Now, when I want a particular exercise file, I do this again or I can just press shift + alt + A on my keyboard like this, Add Existing Item, and I'll select utest, and I'm gonna make a working copy of it there and select the copy. So there's the copy like that and I can press F7 to build, and I can come over here and there's my result. When you delete your working copy leave the BWString and BWUTest classes for the next lesson.
I'm gonna switch back to the Mac. I'll be using Xcode for this course but you may use whatever environment you choose. The exercise files are here to make your learning experience easier and more powerful. Take your time, experiment a lot and happy learning.