Академический Документы
Профессиональный Документы
Культура Документы
Because they are designed only to provide additional examples, summaries, or explanations where the textbook is weak, they do not cover many obviously important topics. You can download a zipped version: notes-cpp-200412-19.zip [less than 400 KB]. -- Fred
Getting Started
Development Systems o IDEs - Dev-C++ Model programs o Example - Celsius to Fahrenheit. o Example - Celsius to Fahrenheit loop. o Example - Template for main. Misc o Braces
o
Summaries Summary - Basic Elements types, ... Summary - Expressions Summary - Control Flow Statements Summary - Functions Summary - Program Structure
Development Techniques
Expressions Summary: Expressions Example: Converting to binary by division Operator: sizeof Bitwise Operators o Operators: Bitwise o Example: convert to binary using bitwise ops o Example: Convert to hex using bitwise ops
Control Flow
Loops Examples Switch Statement Switch
Ex: Line of stars - count Switch usage Simple Calculator up o Ex: Line of stars - count Functions down Function Concepts o Ex: Finding max of input Function Structure values Function return Statement Programming Problems Function Parameters Reading from cin Function Call Order o Programming Problem Function Reference Parameters cin Count Input Values Programming Problems o Programming Problem o Programming Problem cin Count Equal Convert to Seconds o Programming Problem o Programming Problem cin Max and Min Temperature Opinion o Programming Problem o Programming Problem cin Average Convert to Meters o Programming Exercise o Programming Problem Average Positive Negative Average 3 Numbers Programming Problems - Writing o Programming Problem from a loop Prompt Y/N o Programming Problem Print Numbers o Programming Problem - Exceptions try - catch 99 Bottles of Beer Standard exceptions o Programming Problem Ulam Sequence Exception test Programming Problems - Nested loops o Programming Problem Print Parallelogram o Programming Problem Figures
o o
Input / Output