Lesson #3: Variable Types

 

This video covers the main lesson

http://users.encs.concordia.ca/~bwgordon/lesson3_variable_types.mp4

 

Note that some compilers (such as newer versions of CodeLite) require you to put the following line at the top of your program in order to use the getchar() function:

 

#include <cstdio> // needed for getchar()

 

In the video I didn’t have this line, but normally it’s a good idea or you might get errors with some compilers.

 

This video provides short exercises for you to practice C++ programming

http://users.encs.concordia.ca/~bwgordon/lesson3_variable_types_exercises.mp4

 

A rar file that contains the cpp files for this lesson is provided here

http://users.encs.concordia.ca/~bwgordon/lesson3_variable_types.rar

 

Additional exercise problems (try them if you have time)

http://users.encs.concordia.ca/~bwgordon/lesson3_variable_types_more.rar