Loading video...
Getting Started
- C++ is a “compiled” programming language, so users need to acquire a compiler for their system
- Gnu C/C++ compiler is the “granddaddy” of Open Source
- The user needs an editor to write the source code for the compiler
- Eclipse is a very popular Integrated Development Environment (IDE), but almost any text editor will be sufficient
- We write the “Hello World” program, everybody’s first
- Basic program structure: commentary, include outside sources, specify a namespace, global area, Main Function definition, coding statements
- Source code is compiled and linked before executable can be run
- “>make” program is a popular “build tool”, besides an IDE
- Second program, request input from user
- Third program, read a complete line of text
- This link discusses basic C++ program structure: http://www.cplusplus.com/doc/tutorial/program_structure/
- Here are links to a few popular compilers:
- MinGW – http://www.mingw.org
- CygWin – http://www.cygwin.com
- Microsoft Visual Studio Express –http://www.microsoft.com/express
- Macintosh Developers Network – http://connect.apple.com
- Here are links to a few popular editors:
- Eclipse – http://www.eclipse.org/cdt
- Notepad++ – http://notepad-plus-plus.org
- Notetab – http://www.notetab.com
- Programmers Notepad – http://www.pnotepad.org
- Emacs – http://www.gnu.org/software/emacs/windows/ntemacs.html
Getting Started
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.
- Intro
- Overview
- Acquiring a C++ Compiler - Windows
- Setting up MinGW
- Acquiring a C++ Compiler - Others
- Acquiring a C++ Compiler - IDE
- Acquiring an Editor
- Acquiring an Editor
- 'Hello World' Everybody's First Program
- Basic Program Structure
- Basic Program Structure
- Compiling, Linking, Running
- Build Tools
- Quick Note on Variable Declaration
- Your Second Program - User Input Basic 'How Old Are You?'
- Workspace / Source Code
- Quick Note on Character Arrays
- Your Third Program - User Text Input 'Whatâs Your Name?'
- Do Your Homework!



































Start Learning Now
Our free lessons will get you started (Flash® 10 required).
Sign up for Educator.comGet immediate access to our entire library.
Features Overview