Effective Programming in C and C++
A fast introduction to C and C++: memory management, object-oriented programming and an N-body simulation project, with test data and solutions.
C and C++ remain useful for classes, research and jobs, and this fast four-week class teaches both to programmers who know another language. It covers memory, data structures and floating-point arithmetic in C, then object-oriented C++, the STL and design patterns. Students write libraries, review one another’s code and build an N-body gravity simulation with OpenGL as a final project.
What You Will Achieve
- Manage memory and debug programs in C
- Write object-oriented C++ using abstraction, inheritance and the STL
- Apply unit testing and code review to a project
- Build a larger C++ project with makefiles and third-party libraries
Program Overview
Introduction to C
The first lectures concentrate on the lower level.
- Welcome to the memory jungle
- Data structures and floating-point arithmetic
- Secure programming in C
Object-Oriented C++
The next lectures add higher-level design.
- Transition from C to C++
- Abstraction, inheritance, STL
- Design patterns
Project Practice
The last lectures prepare you to build something larger.
- Unit testing, third-party libraries, code review
- N-body problem
- OpenGL, makefiles, large projects
Course Completion
Job Outlook
These skills apply to software development and computational research, where C and C++ are used for fast programs and legacy systems.
Good for: Programmers who are comfortable in another language such as Python or Java and want a fast entry to C and C++.
Keep in mind: This is not a first programming class. Code reviews and the group project need other people, and it describes C++11 as new, so check current language features. One problem has no sample solution.
Bottom line: An efficient crash course in C and C++, with test data and sample solutions that make it good for self-study.
Frequently Asked Questions
Which programmers does the syllabus advise against taking it?
Those who have worked on several large C++ projects at companies, who might make better teaching assistants, and those with no programming coursework at all.
What do the assignments include?
Floating point, matrix manipulation, a transposition cipher, linked list libraries in C and C++, minimum spanning tree and a rational number library, with test data.
How do the code reviews work?
You review 30 to 100 lines of someone's code, adding comments and a summary of main points, and use the C++ coding standards provided as a guide.



There are no reviews yet.