layout | title | nav |
---|---|---|
default |
Tools and Links |
tools |
Additional information will be posted here throughout the course as needed.
###Installing the Course Virtual Machine
- [Click here for a separate page with instructions to install the course VM.]({{ site.url }}/installing-course-vm.html) Note that this includes downloading a 2.5 GB virtual image that may take several hours; try to download it overnight.
###Background Lectures
- Mark Redekopp put together several lectures recapping material that you should have learned in CSCI 103. These may be particularly helpful if you are a transfer student and your intro class was not as comprehensive as CSCI 103.
###Sample Exams
- Sample Midterm (no solutions)
- Sample Final (no solutions)
- Cygwin is a full-blown Unix-environment for Windows users, providing you with the gcc compiler, debugger, shell, and everything else you need.
- Our guide for writing good code, and help to deal with common mistakes.
- Cplusplus.com
- CPPreference.com
- Microsoft Visual Studio. A commercial development environment that is generally not free, but for which you can get a free license as a USC student.
- Eclipse. A powerful and freely available development environment, which can be used both with Java and C++.
- GNU Emacs. A powerful and freely available editor that is very customizable, and comes with a lot of support for writing and editing code. If you use Emacs, you will likely still need to know how to compile at the command line.
- VIM. Another powerful and freely available editor that is very customizable and has support for writing and editing code. Same caveat as for Emacs.
- Sublime Text. An increasingly popular cross-platform editor. Not free; comes with evaluation period.
- Valgrind Documentation
- Memcheck: a memory error detector
- Explanation of error messages from Memcheck
- [Git Resources]({{ site.url }}/git-resources.html)
- Common Git issues and fixes
-
Issue: I got the following error when I try
git status
orgit commit
, why?:error: object file .git/objects/99/9269851355238be625dc0c0da9b6a7b8f3965f is empty error: object file .git/objects/99/9269851355238be625dc0c0da9b6a7b8f3965f is empty fatal: loose object 999269851355238be625dc0c0da9b6a7b8f3965f (stored in .git/objects/99/9269851355238be625dc0c0da9b6a7b8f3965f) is corrupt
Fix: This can happen if you don't shut down the VM properly. You should always choose the "Shut Down..." option from within Ubuntu: Power -> Shut Down. Don't save the machine state, force quit, or let your computer sleep while you have the VM running (while it won't always cause a problem, you may have issues with Git like this one here). You can find a solution on at this link I've followed these steps before and it fixed my issue.
You could also re-clone your repo to a new folder and work out of there. If you've made changes to your files, make sure to copy those changes to another file, then recommit your changes from the new directory.
-
- VARC offers tutoring for this class.