Introduction to C++
Jonah Warrenjonah AT parsons DOT edu
http://www.feedtank.com/2005/cpp
Code from Class 4
- forloop_01.cpp (for loop - simple repeat)
- forloop_02.cpp (for loop - count down + end expression + initialization)
- arrayforloop_01.cpp (using arrays and loops - input)
- arrayforloop_02.cpp (using arrays and loops - factorial)
- while_01.cpp (while loop - print out ASCII values of a word)
- while_02.cpp (while loop - continually read input from user)
- dowhile_01.cpp (do while loop - ask user for number till they get it)
- nestedloops_01.cpp (nested loops - print out coordinate system with nested loops)
- if_01.cpp (if statement - count the 'a's in an input word)
- ifelse_01.cpp (if statement - count the 'a's and other letters in an input word)
- ifelseif_01.cpp (if/else statement - count the 'a's, 'e's, 'i's, 'o's and 'u's in an input word)
- switch_01.cpp (switch statement - same as above done with a switch)
- or_01.cpp (or logical operator - count the vowels in a word, with one if statement)
- and_01.cpp (and logical operator - check to see if an input number is in a given range)