Step 3:
Introduction to C++ Desktop Programming

Return to Main Menu 

Check out these C++ Books!

Welcome to C++! These lessons are modeled after the my college class. It is designed for students who plan to be Computer Science majors and transfer to a 4-year college. Even though the class is called Introduction to Programming, it is really not for those of you who have never programmed before. I strongly suggest you take learn Visual Basic and C# before taking on C++. However, I welcome everyone who wants to learn. I just want you to understand what you are getting into!

I am going to teach you how to build Windows Forms applications... the ones you are used to using. I will also teach you how to build a few console applications so you will be prepared for the advanced courses where console apps are used exclusively.

I have placed the demonstration projects and other materials on this page for you. Click on the presentation you want to review. To download a project, click on the item here and Windows will ask where to save your file. Most of the samples are written in C++ 2012.


Lessons & Projects

Projects, Slides, & Videos

  • Start Here: Get your software installed.
  • Get Visual Studio Pro or Ultimate installed on your computer. You may use VS 2012 or 2013.
  • Get the latest updates for Visual Studio.
  • Creating our first C++ projects
  • Lesson 1
    Introduction to C++ & Data Entry
    (Chapters 1-3)
  • Setting up Visual Studio 2012/13
    • To add C++ windows forms projects into VS 2012 follow these directions.
  • Getting Started with GUI C++ (Managed Code)
  • Data Entry Part 1
  • Data Entry Part 2
    Learning C++ Data Types (Slides) (Chapter 4 in Murach)
  • Lesson 2
    Data Entry Parts 3 & 4: Introduction to Variables (Chapter 4) & formatting strings (p. 112)
  • Lesson 3
    More on variables, keystroke trapping, running totals & Other cool stuff (Chapter 4)
  • Using List Boxes & Dynamic Properties
  • Learning about Running Totals & Counting
  • Ron's Pet Store Demo (includes my images)
  • Trapping Keystrokes example
  • Trapping Keystrokes note: A KeyPress event can involve any printable keyboard character, the CTRL key combined with a character from the standard alphabet or one of a few special characters, and the ENTER or BACKSPACE key.

    Use KeyDown and KeyUp event procedures to handle any keystroke not recognized by KeyPress, such as function keys, editing keys, navigation keys, and any combinations of these with keyboard modifiers.
  • Lesson 4
    Making Decisions (Chapter 5) & Custom Event Handlers (Chapter 6), & Loops (p.136)

Making Decisions using IF Statements
Logical operators: If part 2
Using Switch

  • Lesson 5
    File I/O, Try-Catch, Custom Methods, StreamReader, and StreamWriter (Chapter 17)
  • Introduction to File I/O (Page 478)
  • Structured Error Handling (Page 172) Slides
  • Custom Methods

Load List Box from a disk file projects:

1- Using Streams Demo

(These are in C# but C++ is nearly identical!)
Part 1
Read from disk file
Part 2
List box Add/Delete
Part 3
Write to a disk file

  • Lesson 6
    Custom Functions, properties & Classes (Chapters 12 & 14)



Book & C++ Resouces

Murach's C++ 2008
by Prentiss Knowlton
19 chapters, 570 pages, 244 illustrations
Published October 2009
ISBN 978-1-890774-54-7