Current location - Loan Platform Complete Network - Big data management - computer c language learning basics teaching
computer c language learning basics teaching
Before we learn the language, we need to first drug to figure out the concept of "programming language". The way we talk is to use Chinese to express, but the computer it is certainly no way to direct our Chinese, once in the c language programming we need to convert our language into a computer language to be able to. The following editor will bring you the basic introductory knowledge of computer c language learning.

Computer c language learning basic introductory knowledge teaching

First of all, we need to convert our language into a computer language, so that the computer can read and understand our meaning, we do things, such a language is called a programming language (ProgrammingLanguage). Common programming languages are as follows:

1, C/C++: C++ is the basis of the c language, C is a part of C++, C/C++ is mainly used for PC software development, Linux development, game development, microcontroller and embedded systems.

2, Java, a general-purpose language, website backend, Android, PC software development, and in recent years, it has ventured into the field of big data.

3, C#, Microsoft developed to fight against Java a language, similar to Java, but C# is not widely used, compared to Java is a bit insignificant.

ASCII encoding and Unicode encoding

Originally, in the study of ASCII encoding and Unicode encoding before the first to understand the conversion between binary, octal and hexadecimal, but this conversion in high school when we have learned not to go into detail, directly about ASCII encoding and Unicode encoding it. Computers store data in binary form, so they only recognize the numbers 0 and 1.

1, ASCII code

A binary bit (Bit) has a 0, 1 two states, a byte (Byte) has 8 binary bits, there are 256 states, each state corresponds to a symbol, is 256 symbols, from 00000000 to 11111111. as early as the 1960s, the country has developed a set of English characters with the binary bit correspondence, called ASCII code, used to this day.

ASCII code provides 128 English characters and binary correspondence, this is better to understand, is abc respectively, with a combination of eight 0 and 1 code to indicate, such as a is 01100001.

2, Unicode

Computer utility with the passage of time gradually to the global convergence of ASCII code, the problem of encoding has come to the fore. The problem of ASCII code came to the fore, ASCII code can only represent a maximum of 256 characters, that my 100,000 Chinese characters in Greater China how to say, so this time there is Unicode code. For example, the code for "a" is 01100001, one byte is enough, and the code for "good" is 0101100101111101, two bytes are needed.

As long as you understand the ASCII and Unicode codes, it will be much easier for you to learn the computer c language, because many programs need to use these codes when writing. When you understand the meaning of these encodings while programming, it is easy to convert your own language into a programming language, and naturally programming is very easy.