[C++] Tutorial(1) Data Type
C++ is the first programming language that many people have learned, and it is also the first impression of programming of many people with information background.
Read More »[C++] Tutorial(1) Data TypeC++ is the first programming language that many people have learned, and it is also the first impression of programming of many people with information background.
Read More »[C++] Tutorial(1) Data TypeC++ is a veteran programming language developed in 1979. In 1998, there was the first C++ standard specification, and it is also the most widely used programming language in system programming languages as far as I know.
Read More »[Linux][C++] How to compile and execute a C++ programA structure is a type that stores multiple related variables (variables that may contain multiple different data types) under one-name for easy control.
In C programming language, we can declare a structure by keyword struct
:
A pointer is a variable that contains the address of a variable. Generally speaking, when we declare and assign a variable to the system today, the program will apply for space in the memory to store :
Read More »[C] Introduction of PointerFunction is an important concept in programming. A function is not a formula (of course it may be), but a block of code that completes a specific function.
Generally, function is a bit like formula: we input something, and the executed result will be generated.
Read More »[C] Introduction of FunctionsArray is a data storage format in which data is stored in continuous memory space; that is the memory locations between each element are adjacent.
In C programming language, we can declare a variable to represents the entire array. For example, the format x[10]
means that there are 10 records stored in the x array, and the index are from 0 to 9.
Regardless of the programming language, the processing of words is important. After all, in a computer system, many settings are operated directly through text.
Therefore, the note in this section mainly record how to input and output text, as well as record read and write file at the same time.
Read More »[C] Character Input/Output and file read and writeUse Symbolic Constants is a way to improve the "source code readability". Just like the classic conversion between Celsius and Fahrenheit, the lower, upper, and step of the boundary value and the updated value are actually meaningful numbers, especially the temperature boundary value.
Read More »[C] Introduction of Symbolic ConstantsIn the previous note, I recorded how to program conversion between Celsius and Fahrenheit ([C] Variables and Arithmetic Expressions). In the process, we continuously increase the Fahrenheit temperature through the while
loop, and view the converted Celsius temperature result.
If you want the program to execute the same command over and over again, you can also use a for
loop to do this.
The most important function of computer invented is to assist humans in computing. So, in this section, we use the conversion between Celsius (°C) and Fahrenheit (°F) to explain which is variable and which is an arithmetic expression.
Read More »[C] Variables and Arithmetic Expressions