S
In my view, one of the most pressing issues of modern literature is many fundamental and little more professional. I'll try to explain it as I see myself. I don't have much knowledge, but at least I'll try. I hope the people who know will get better if they're wrong.So the electronics work is carried out by means of transmission of tyre data from one control device to another (processors, microprocessors, micro-controllers, etc.). Depending on the data provided, the electronics perform certain tasks. In fact, it's a level of computer and assemble architecture that would be very well known at the base level. These teams are usually united in some sort of block, similar to those that make a certain purpose. Sometimes a whole bunch of functions are created that combine functions in the libraries (the math, iostream, etc.). Low level, drive:To write the driver, you need to send these commands to the control devices. The C+++ language is not very suited to these tasks, it's easier to use a clean C. In the simplest case, a library is connected to send and read devices. For example, the simplest way of applying to the dynamics of the SC may look like this (note, windows do not allow direct access to ports):#include <conio.h>
main( )
{
int store;
store = inp (97); /* запоминание начального значения с помощью порта 97 */
printf("пopт 97 = %d \n", store); /* проверка результатов*/
outp(97, 79); /* посылает 79 в порт 97; включение громкоговорителя */
outp(97, store); /* восстановление начального значения */
}
The truth of good people tends to make the front-line-level libraries, which already contain a list of ready-to-functions, classrooms, devices. For example, the code above works well from the library as windows.h, creating a beep( function).
If you want to write to the driver, you're going to have to read about how to use the device from the records of the designers on official websites, which teams can perform, what data are to be sent to do, whether there are specialized librarians from the developers and a lot of other data.High.People who use C++ work normally with ready libraries or create their own tasks. For example, there's a thing like WinAPI to create a graphic Windows window interface. It's back-to-back, you connect the library and work with them. In return, they do some work and produce results.
If you look at the minimum window, in the code, you'll see the filling of the familiar elements: structure, function challenge, cycle use, etc. Another case is that these functions and structures have been made by the developers and they are doing some work, and you only have to call them. There's documentation for their reading.All higher and higher.Usually, libraries are made universal and can be reused. For example, on the basis of one, another could be created, which would perform even more specialized functions. For example, a library with lines can be established. It's a library with a geometric function. It makes a library with details, etc. so functional.
There is, for example, a software graph on the monitor, in the windows above it, winAPI(lines, windows, colours are already ready), but it also has a higherlevel MFC or Windows Forms that are more advanced but based on the same WinAPI.As a result:In fact, the work of the programmer is to find out which library can help to meet the challenges and explore them. And by examining his needs. You want to use Windows GUI applications - there's WPF and Windows Form, or at a lower level, take WinApi. You want to use a videotape for 3D applications, study DirectX. You want to work with music again, all the OpenAL libraries are available. Wishing to write a diver, looking for information on how to use devices and through which library. You want to know why they use ready libraries, study the computer architecture and the basics of the assembler. In any case, you will use the main elements of the C++ language studied: structures, functions, classes, indicators, simple data types, etc.P.S. While I was writing, I was already questioned about the correct writing. I advise you to look at this site: http://www.firststeps.ru/