274x Filetype PDF File size 0.24 MB Source: www.hep.lu.se
MNXB01 course - C++ module
Caterina Marcon
caterina.marcon@hep.lu.se
Caterina Marcon MNXB01 course - C++ module caterina.marcon@hep.lu.se 1 / 30
Lecture’s goals
You will learn:
to use if and if...else selection statements to choose among alternative
actions;
to use for, while repetition statements in a program repeatedly;
how to read and write to text files;
to use data structures to represent a set of data items.
Caterina Marcon MNXB01 course - C++ module caterina.marcon@hep.lu.se 2 / 30
Bibliography
Problem solving with C++”, W. Savitch;
C++howtoprogram, P.J. Deitel
www.cplusplus.com
Caterina Marcon MNXB01 course - C++ module caterina.marcon@hep.lu.se 3 / 30
Compiled languages
To recap:
C++ is a compiled programming language (it compiles high-level
language to low-level machine code);
uses C syntax;
procedural language (program consists of a number of sub procedures
that are performed sequentially).
Caterina Marcon MNXB01 course - C++ module caterina.marcon@hep.lu.se 4 / 30
no reviews yet
Please Login to review.