Cybernetics in C++ /
C++ is a powerful, much sought after programming language, but can be daunting to work with, even for engineering professionals. Why is this book so useful? Have you ever wondered: * How do keywords like static and virtual change their meanings according to context? * What are the similarities and d...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Aalborg :
River Publishers,
2018.
|
Colección: | River Publishers Series in Software Engineering Ser.
|
Temas: | |
Acceso en línea: | Texto completo Texto completo |
Tabla de Contenidos:
- Front Cover; Half Title Page; RIVER PUBLISHERS SERIES IN SOFTWARE ENGINEERING; Title Page; Copyright Page; CONTENTS AT A GLANCE (1); CONTENTS AT A GLANCE (2); CONTENTS; PREFACE; DEDICATION; LIST OF FIGURES; LIST OF PROGRAMS; INTRODUCTION; PART I
- IMPERATIVE PROGRAMMING (1); 1. GETTING STARTED; 1.1 SETTING UP THE PROGRAMMING ENVIRONMENT; 1.1.1 SOFTWARE IDE; 1.2 HELLO WORLD; 1.3 WRITING C++ SOURCE CODE; 1.3.1 COMMENTS; 1.3.1.1 Style With Primitive Tools; 1.3.2 SOURCE CODE FILES; 1.4 SUBSEQUENT STAGES IN BUILDING A PROGRAM; 1.4.1 COMPILATION; 1.4.1.1 Object Files; 1.4.2 LINKING; 1.4.3 RUNNING.
- 1.5 DEBUGGING (1)1.5.1 WHAT ARE BUGS/ERRORS?; 1.5.2 COMPILE-TIME ERRORS; 1.5.2.1 Compiler Errors; 1.5.2.2 Compiler Warning; 1.5.3 RUNTIME ERRORS; 2. DATA TYPES & OPERATORS; 2.1 LEARNING BY EXAMPLE; 2.1.1 PERFORMING CALCULATIONS; 2.1.2 INTERACTING WITH THE CONSOLE WINDOW; 2.2 VARIABLES; 2.2.1 NAMING VARIABLES; 2.2.1.1 Rules; 2.2.1.2 Guidelines; 2.2.2 INITIALISING A VARIABLE; 2.2.2.1 Using Assignment Equals =; 2.2.2.2 Using Parentheses (); 2.2.2.3 Which is Preferable?; 2.2.3 ENSURING READ ONLY STATUS USING CONST; 2.3 PRIMITIVE DATA TYPES; 2.3.1 TYPE CASTING.
- 2.3.1.1 Prospective Problems with certain types2.3.1.2 Static Casting of Types; 2.3.1.3 Solution with Type Casting; 2.3.1.4 C Style Casts; 2.4 OPERATORS; 2.4.1 Mathematical Operators; 2.4.1.1 Arithmetic Operators; 2.4.1.2 Assignment & Equality Operators; 2.4.1.2.1 Assignment Operations using =; 2.4.1.2.2 = Operator in Mathematics and Computer Science; 2.4.1.2.3 Equality Operations using ==; 2.4.1.2.4 Compound Assignment Operators; 2.4.1.2.5 Assignment vs Compound Assignment Operators; 2.4.1.3 Increment & Decrement Operators; 2.4.1.3.1 Post Increment; 2.4.1.3.2 Pre Increment.
- 2.4.1.3.3 Similarities & Differences: Pre Increment & Post Increment2.4.1.4 Bitwise Operators; 2.4.2 LOGICAL OPERATORS; 2.4.3 THE SIZEOF OPERATOR; 3. CONTROL STATEMENTS; 3.1 CONDITIONAL STATEMENTS; 3.1.1 IF STATEMENTS; 3.1.1.1 What is a condition?; 3.1.2 THE IF, THEN, ELSE CLAUSE; 3.1.2.1 Alternative Form using the Ternary? : Operator; 3.1.3 CASCADED/NESTED IF STATEMENTS; 3.1.4 THE IF, ELSE IF, ELSE CLAUSE; 3.1.5 SWITCH STATEMENT; 3.1.6 SWITCH STATEMENT VS IF, ELSE IF, ELSE CLAUSE; 3.2 PROBLEM SOLVING WITH LOOPS; 3.2.1 WHAT ARE LOOPS?; 3.2.2 FOR LOOP; 3.2.3 WHILE LOOP.
- 3.2.3.1 Empty While Loop3.2.4 DO LOOP/WHILE LOOP; 3.3 C++ STATEMENTS & CONSTRUCTS; 3.3.1 BLOCKS; 3.3.2 BREAK STATEMENT; 3.3.3 CONTINUE STATEMENT; 3.3.4 THE GOTO STATEMENT; 3.3.4.1 Prospective Evils of the goto statement; 3.3.5 DROPPING THE BRACES {} FOR 1 ACTION; 3.3.5.1 Potential Hazards in dropping the Braces; 3.3.5.1.1 Breaking at the Wrong Place; 3.3.5.1.2 Dangling Else Clause Issue; 3.3.5.2 Guideline with Braces; 3.4 CREATING ALIASES IN C & C++; 3.4.1 DEFINING CONSTANTS USING #DEFINE
- AVOID IN C++; 3.4.1.1 Issues with Macro Aliases; 3.4.2 TYPEDEF; 3.4.2.1 Cannot modify Typedef.