-
The specific steps are as follows:
Clause. 1. Specify what programming language you want to use (C or C++ or whatever);
Clause. 2. Be familiar with and master the syntax of the language, such as variable types, how to use loop statements, how to define variables, how to define functions, how to declare, etc.;
Clause. 3. Familiar with and master the basic framework of writing **, C language is as follows:
#include
int main()
return 0;
The above is the most basic framework, first there is "include<> where <> is the header file name you need to use, then the main function, and any ** is executed from the main function. Before you use a function, you need to declare it.
To take the simplest and most classic example, the word "hello world" is output after execution, as follows:
#include
int main()
printf("%s","hello world");
return 0;
Note that the semicolon "; End.
Regarding the function definition, it is as follows:
#include
void print();
int main()
print();
return 0;
void print()
printf("%s","hello world");
"void print(); is the function declaration, and then the print() function is called in the main function, and the content of the print() function is executed, which is to output the word "hello world", where the "" is an escape character, which means carriage return and line break.
Clause. Fourth, the writing should be standardized, that is, the statement should be as clear and clear as possible (you can do whatever you want when you become a master).
Clause. Fifth, choose the right compiler, that is, the software that can make you program executables, the oldest has turbo c, and the easy to use is Microsoft's visual C++, which is available on the Internet, just search for it.
Probably just a few points, if you have the opportunity, you look for some simple basic **, and you will slowly understand.
-
Go buy a book in C or C++. A lot of them online. Check it out for yourself.
Also, do more hands-on exercises on your own. When you do a question, you will feel a sense of accomplishment and the more interested you will be. It is also necessary to analyze the problem.
After the analysis is good, it is easy to do the question.
-
With the continuous expansion of technology, a simple programming language can no longer meet the needs of enterprises, many IT people are equipped with a variety of skills, but fortunately, programming languages are the same, for example, you learn C, and then learn C++ or Python is relatively easy, so, for the first time to learn programming, or choose a language that focuses on the basics, such as C, which will help the learning of other programming languages in the future.
First think about how many parts the whole program needs, and then what functions each part needs, and then think about the process of each part, the global variables needed, and then make it up according to the content of the design.
The introductory course of MCU C language programming is not difficult, it is not easy to say, and the first thing to understand is to understand what these two things are when learning MCU C language? The introductory programming of single-chip microcomputer is mainly to learn C language, followed by circuit and programming language. >>>More
#include
using namespace std; >>>More
Haha, if you're just learning SQL programming, you'll be fine with any of them, but I'd recommend Oracle because it's closer to the common usage and the essence of SQL. One more sentence: What weight is not weight, and it is impossible to learn the heavyweight directly? >>>More
If several skills are bound at the same time, you have to be sure that these skills will not occupy the public CD, and that the skill placed in the first one is not a trigger skill, and Blizzard has changed the macro judgment many times to prevent brainless macro output. However, there are some exceptions. >>>More