A Collection of Sample C++ Programs

(Under construction)


This page contains links to sample C++ programs.  This page is not intended for any particular Computer Science class, but may be helpful for anyone who is currently taking a CS course (esp. CS110, and CS170) using C++, or who is simply interested in getting started in C++.  Brief explanations will be provided for each sample program.

The sample programs are organized into the following topics.  They might not follow any logical order.:

 Hello World, Basic I/O, Variables, Constants  Program Flow  Functions
Modularity  Arrays  Formatted I/O, File I/O
 Pointers  References  Structure
 Class and Object  Inheritance  Polymorphism
 ADT Stack ADT Queue ADT List
 Templates  Exception and Error Handling Appendix

Copyright Disclaimer

The sample programs in this section of the Computer Science Department's web site, unless otherwise stated, are written by Qiang Hu.  Programs taken  from other sources are used in compliance to the copyright notices of those corresponding sources.

This page has been accessed     times.



Last modified: Friday, 21-Aug-2020 15:28:20 CST
Copyright 2000 Department of Computer Science, University of Regina.

 CS Dept Home Page

Teaching Material