CS 150 Introduction to C++ Programming - Spring 1998 |
|---|
[ Home | Lecture Notes| WebTutor | WebTutor Site Map]
Syntax
is the grammar of the language, that is the rules for
constructing valid statements in that language.
If you break the rules the compiler will complain.
Semantics is what the statements
mean, like calculating something or printing out a message.
Computers can't read your mind, so they don't help much if the
meaning of your program is not what you wanted.
Let's start with some syntax.