Stanford Engineering Everywhere CS106B Library

后端 未结 7 1954
长发绾君心
长发绾君心 2020-12-17 06:31

I am currently a C# programmer and have been interested in learning more about C++ and data structures. I found the CS106B class offered free online through the Stanford E

相关标签:
7条回答
  • 2020-12-17 07:10

    I suggest to go to the CS106B page directly:

    http://www.stanford.edu/class/cs106b/

    And grab newest assignments. They are compatible with VS 2008.

    The assignment material from SEE is outdated (VS 2005). The assignments are not discussed in the video, so you won't miss anything by doing that.

    Just download from the CS106B page and open in VS 2008, that will work!

    0 讨论(0)
  • 2020-12-17 07:17

    Was having the same problem. I found both the .h and the .c files online.

    You can find them here: http://www.ime.usp.br/~pf/Roberts/C-library/standard/cslib/

    0 讨论(0)
  • 2020-12-17 07:20

    I am using visual studio express, and all I did was to just unzip the files it works fine.. here I have done the CS106B assignment with also the full zip'd up files of that assignment as well, all I did was to uncompress the assignment from the cs106b website and open up the sln (solution) file within visual studio express.

    0 讨论(0)
  • 2020-12-17 07:29

    Reading through handout 5P makes it seem like the installer will expect the file structure VS2005 will create - especially this sentence: "Run (and quit) Visual Studio (you can go ahead and register your copy if it asks you). It is important that you have done this at least once before proceeding to the next step."

    Try creating a folder structure like: (under "My Documents") "Visual Studio 2005\Projects" and see if setup.exe will work.

    0 讨论(0)
  • 2020-12-17 07:31

    There is no c++ library available for cs106b in unix system. I hope they publish the library in source.

    0 讨论(0)
  • 2020-12-17 07:35

    Just got it to work by using some information I found here: http://www.functionx.com/visualc/libraries/staticlib.htm

    I'm using Visual C++ 2008 Express. Here's how I did it:

    1. Download the PC Starter Code ZIP file for Assignment 1 from the current semester's CS106B class website. http://www.stanford.edu/class/cs106b/ In that file you'll find a folder named "StanfordCPPLib". In that folder, you'll need the StanfordCPPLib.lib and the *.h files you want to include.
    2. In Visual Studio, create a new project (File -> New -> Project). Select a Win32 Console Application, choose a name, and click Next.
    3. When the Application Wizard pops up, click Next (not Finish). In the Application Settings, check the box marked "Empty Project". Click Finish.
    4. In the Solution Explorer, right click on the Source folder and create a new .cpp file. (Add -> New Item -> Code -> C++ File)
    5. Find your new project's folder in Windows Explorer. In that folder, you should be able to find your new .cpp file you just created.
    6. Paste the StanfordCPPLib.lib and your needed *.h files you downloaded earlier into the same folder that contains your new .cpp file.
    7. Finally, you need to add the library to our new project. In Visual Studio, using the main menu, click Project -> Add Existing Item. The dialog should default to your project's folder where you just pasted StanfordCPPLib.lib. Select StanfordCPPLib.lib and click Add.

    You should now be able to add an #include "example.h" for whatever .h files you copied into your project folder.

    Note: Since you'll be using a newer version of Stanford's custom library, there may be some small differences between the original handouts and the new library. For instance, when using #include "simpio.h", the handouts list a function called GetLine(). In the new library, that function is capitalized differently: getLine(). Make sure you check the header files for correct syntax/usage.

    0 讨论(0)
提交回复
热议问题