223x Filetype PDF File size 0.14 MB Source: www5.in.tum.de
Introduction to Programming
Block Tutorial C/C++
Michael Bader
Master’s Program
”Computational Science and Engineering”
Introduction to Programming
Block Tutorial C/C++
C/C++Tutorial – Overview
• From Maple to C
• Variables, Operators, Statements
• Functions: declaration, definition, parameters
• Arrays and Pointers
• From Pointers to Dynamical Data Structures
• Object Oriented Programming: From C to C++
Introduction to Programming
Block Tutorial C/C++
MondayLesson–Overview
• Maple and C: the differences
• Compiling
• First Steps in C: ”Hello World!”
• Variables in C: data types, declaration and assignments
• C operators
• C statements
• basic input and output
Introduction to Programming
Block Tutorial C/C++
MapleandC–Differences
Maple’s programming Cprogramminglanguage:
language: • needs ”compiler” to translate
• needs Maple as runtime source code to executable
environment program
• is interactive: user calls • is not interactive.
functions, Maple prints the Input/output has to be
results programmedexplicitly.
• is declaration-based: • is imperative: sequence of
procedures can be instructions and data flow of
(re-)defined any time, the last a program is predetermined.
definition is used Changing program code
requires recompilation.
Introduction to Programming
Block Tutorial C/C++
no reviews yet
Please Login to review.