As a computer does not understand the small white, you are not often listening to friends talking about CPU, memory, main storage, mechanical hard disk, solid-state drive, motherboard and so on some high mountain professional terminology, feel oneself weak explosion has wood ~ ~
These are learning programming must understand the computer Hardware Foundation, I will explain to you.
One. CPU
CPU is the abbreviation of Central processing Unit, the Chinese translation as "CPU", is the brain of the computer, responsible for computing, thinking, processing data, control other equipment, no CPU, the computer can not talk about, the speed of the CPU directly determines the speed of the computer. As shown in the following:
Figure 0-1 CPU
The current market for desktops and laptops are commonly used in CPUs with Intel (Intel) and AMD (ultra-micro Semiconductor), Intel performance is a bit better, occupy a large part of the share, if your CPU is AMD, is not a bit to take the bright.
The CPU has a lot of pins and plugs directly into the motherboard as shown in:
Figure 0-2 CPU Slots
I don't know if there's a dense phobia, do you think it will be uncomfortable ^_^
Two. Memory
Memory is the following rectangular "card", also known as the Memory bar.
Figure 0-3 Memory Strip
If you have assembled your computer yourself, you must have seen it. We often say that the computer has a few g of memory, refers to its size, the market is common in 2G, 4G, 8G and so on.
The memory strips are plugged into a specific slot on the motherboard, as shown in the memory slots of the desktop:
Figure 0-4 Desktop Memory slots
However, in order to save space, notebook generally put the memory bar flat, as follows:
Figure 0-5 Notebook Memory slots
The motherboard generally has more than one memory slot, you can plug in more than one memory, the computer memory size is the sum of all memory strip size.
Memory bars are also known as main storage.
Three. HDD
The hard disk is used to hold the data. Open a file, after editing, Ctrl+s saved to the hard drive, the power is not lost.
The hard drives are divided into mechanical hard disks (HDDS) and solid state drives (SSDs).
A mechanical hard disk is like a VCD or DVD, which is driven by a precision motor to allow the probe to read and write data. As shown in the following:
Figure 0-6 Mechanical HDD
SSD is like a mobile phone memory card or U disk, there are hundreds of billions of electronic components, very small, to reach the nanometer level, through the circuit to read and write data. As shown in the following:
Figure 0-7 Solid State Drive
Compared with the mechanical hard disk, the SSD has a great advantage in reading and writing speed, a very obvious example is that the computer installed a solid-state drive fast, very little lag phenomenon.
Mechanical hard disk and solid-state drive is not directly plugged into the motherboard, but through the interface to connect to the motherboard, so called external storage, is also part of the computer peripherals, but not like a mouse, keyboard, u disk, and so on, can not work properly, hard disk is the normal operation of the computer external equipment.
Four. Motherboard
The computer has so many hardware, must let them coordinate together, either all fighting each other; The motherboard is responsible for this work, it allows the CPU, memory, hard disk and other devices connected together, can be well coordinated work. As shown below:
Figure 0-8 Motherboard
Shenyang 463 Hospital procedure: Well, don't study what devices are on the motherboard, most of which have no effect on programming, and are not within our scope of tutorials.
The prelude to C + + learning is familiar with computers