C++ Basics Presentation
C++ Basics Presentation
What is C++?
• C++ is a high-level programming language
used to create computer programs. It supports
both object-oriented and procedural
programming.
What is Arduino?
• Arduino is an open-source electronics
platform based on simple hardware and
software. It is used to build digital devices and
interactive objects that can sense and control
physical devices.
What does 'cout' do?
• `cout` is used in C++ to print text or output on
the screen. It stands for 'console output'.
What does int main() mean?
• `int main()` is the starting point of every C++
program. It is the main function where the
program begins to run.
What is a semicolon (;) used for?
• A semicolon (;) is used to mark the end of a
statement in C++.
What is a variable?
• A variable is a container used to store data
that can change during the execution of a
program.
What is a comment in C++?
• Comments are notes in the code used to
explain what the code does. They are ignored
by the compiler.
• - Single-line: // This is a comment
• - Multi-line: /* This is a comment */
What is return() used for?
• `return` is used to send a value back from a
function. In `int main()`, `return 0;` tells the
computer that the program ended
successfully.
What is a data type?
• A data type tells the compiler what kind of
data a variable can hold, like:
• - int: for integers
• - float: for decimal numbers
• - char: for single characters
What is an operator in C++?
• Operators are symbols used to perform
operations:
• - Arithmetic: +, -, *, /
• - Comparison: ==, !=, >, <
• - Logical: &&, ||, !
Thank You!