Programming languages
There are numerous programming languages available, e.g. C/C++, Java, Fortran, Python etc. The most popular language in robotics is probably C/C++ (C++ is an object-oriented successor to the C language).
Â
Contents:
GETTING STARTED
What Is C?
Program Example
Commencing A Program - Include
C Functions
Comments
Variable Declaration
Coding C Statements
Compiling And Linking
Running The Program
VARIABLES, DATA TYPES AND CONSTANTS
Declaration Of Variables
Reserved Words
Variable Declaration
Data Types
Unsigned Data Types
Global And Local Variables
Variable Initialisation - The Static Keyword
Assigning Values To Variables
Working With Characters
Special Escape Characters
Working With Floating Point Numbers
Specifying Numeric Values
Constants
Setting Up Symbolic Constants - The #Define Statement
EXPRESSIONS, ASSIGNMENTS AND OPERATORS
Operator Introduction
Operators
Arithmetic Operators
Postfix And Prefix Unary Operators
Bitwise Operators
Assignment Operators
Expressions
Data Type Conversion In Assignments
Casting
Relational Operators
Conditional Operators
The Tertiary Operator
Summary Example
CONTROL AND FLOW
Control Flow Statements
The If Statement
Nested If Statements
The Switch Statement
The While Statement
The Do While Statement
The For Statement
Nested Loops
Unconditional / Endless Loops
The Break Statement
The Continue Statement
The Goto Statement
Conditional Expressions
The Comma Operator
FUNCTIONS
Overview
Internal Functions
Function Prototypes
Passing Arguments To Functions
Returning Arguments From Functions - Return
Global And Local Variables - Variable Scope
'Call By Value' Function Invocation
Storage Classes