ProgrammingBasic 1
ProgrammingBasic 1
BASICS OF
PROGRAMMING
TOPICS DISCUSSED
• The C++ character set, identifiers and keywords, data
types, variables, declarations,
• Best practices for Programming -Naming variables
according to standards, Importance of following
coding standards- file header block, file footer block,
function header block, function footer block,
commenting guideline, Indentation of code,
statements,
• C++ program structure,
• Input and output operations,
• Program Life Cycle
Steps in learning C
Alphabets, Digits, Special Symbols
Constants, Variables, Keywords
Instructions
Programs
Special
Keywords Identifiers Operators Strings constants
Symbols
(i) Keywords words that are basically sequence of characters
defined by a computer language that have one or more fixed
meanings. They are also called as reserve words. Key words cannot
be changed. ex. Int, float, do-while, if, else,…………..
(ii) Identifiers words which have to be identified by keywords.
user defined names. ex. int amount, float avg,…………..
(iii) Operators +, -, *, %, /, …………….
(iv) Strings “Manipal”
(v) Constants -15, 10
(vi) Special Symbols { } (,…..
6/22/2015 Department of CSE 11
Keywords
Pi 3.14159
speed of light 2.99792+E8 meters/sec
• Tokens
• Keywords
• Identifiers
• Constants