Topics Covering List:
- Study the practice of programming.
- Examine universals in programming Investigate procedural programming
- Become familiar with object-oriented programming and begin using the C++ coding environment.
- Utilize variables and the qualifier const
- How to Create comments?
- Analyze the variations between ANSI/ISO C++. and Common C++
- Utilize cout to create C++ output.
- Add input using cin
- Start working with classes and data structures
C++ Programming Chapter 01 (Chapter Summary:)
- Learning the syntax of a computer programming language and fixing logical issues are both necessary for programming a machine. You must first develop the programme in order to compile, test, and produce a functioning programme.
- The methods for variable value input and output are available in all programming languages. A variable is declared by having a name and a type assigned to it.
- Programs that follow a set of stages or procedures are called procedural programmes. Sequence, selection, and loop are examples of control structures used by procedural systems. Modules or subroutines can be called from within programmes.
- Object-oriented programming introduces a number of modern programming ideas, such as classes, inheritance, polymorphism, and objects. A class’s instances are objects. A class can be extended through inheritance to create more specialised classes. The property known as polymorphism enables programme modules to function effectively depending on the situation.
- By entering source code into an editor and building the application, you can create C++ programmes. The compiler may produce faults or warnings when you compile a programme, which you must fix before running it.
- Functions are the name given to C++ modules, and each function has a header and a body. A main() function is present in every C++ application.
- Variables in C++ must have a type and a name. Integer for whole integers, double and float for floating-point values, and character for any character are examples of simple types. The name of a variable must be one word and not a C++ keyword. The equal sign, which serves as the assignment operator, can be used to assign a value to a variable. Constants are values that never change.
- Comments are statements in a programme that don’t run. Line and block comments are supported in C++.
- A preprocessor directive instructs the compiler to perform a task before generating the programme, such as including a header file.
- Values are shown using the cout statement and an insertion operator. To read values into variables, use the cin statement and an extraction operator.
- Your own C++ data type, which is a complicated type made up of simpler kinds, is created whenever you construct a data structure or class. By default, when you construct a structure, all of its fields are accessible using the dot operator.
C++ Programming Chapter 01 (Key Points):
- A program for a computer involves writing instructions that enable a computer to carry out a single task or a group of tasks.
- Any language’s syntax is made up of its rules.
- The erroneous application of a language’s rules results in a syntax error.
- Program statements are instructions that resemble phrases in the English language.
- The language that computers can understand is called machine language, and it is made up of 1s and 0s.
- A programme that translates programming language instructions one line at a time is called an interpreter.
- A programme that translates a complete programme at once is called a compiler.
- When you employ a sentence that is syntactically / logical correct but doesn’t accomplish what you meant, you have made a syntactically / logical error.
- A programme is run by giving a command to carry out the programme statements.
- Program statements are carried out when they are executed.
- To check if a program’s outputs are accurate, you test it using sample data.
- When a proper word is used in the incorrect context, semantic problems result.
- The data that a programme produces is known as output.
- The data that is entered into a computer programme as input so that it can be altered comes from an external source.
- Memory regions with changing contents are called variables.
- A variable must be declared before it can be used; when it is expressly declared, it receives a data type in addition to a name.
- What kinds of values can be kept in a variable and what kinds of operations can be run on it are determined by the data type of the variable.
- Values like 13 or -6 can be found in numerical variables.
- Character variables can contain values such as “A” or “&.”
- Whole numbers are stored in integer variables.
- Floating-point variables hold decimal-pointed numbers.
- Constants without names are literal values with names.
- Programs that follow a set of stages or procedures are called procedural programmes.
- A production programme is a practical application used by a company.
- The fundamental logic elements utilised in programmes are control structures.
- You can write stages to run continuously, one after the other, by using the sequence structure.
- Depending on a circumstance, you carry out various tasks using the selection structure.
- You can repeat actions while a condition endures by using the loop structure.
- Methods are collections of statements that can be run together.
- To execute the statements coded within the method, you call the method by using its name.
- Abstraction is the process of focusing on significant characteristics while dismissing minor ones.
To be Continued…
Leave a Reply