Answer the question
In order to leave comments, you need to log in
How to learn to write system programs for a computer?
At the moment I'm studying C ++ according to the book by S. Prata. I want to learn how to write programs for a computer, for starters, something simple, for example, after reaching a certain point in time, open a text file and make an entry in it, like this. What can you advise to read on this topic?
Answer the question
In order to leave comments, you need to log in
If you want to do something non-standard, you will have to know WinAPI.
Approximate learning vector:
1. Reading Petzold: www.ozon.ru/context/detail/id/138365
There is no longer a paper version, only an electronic one. Well chews the principles of Windows
2. Read Shchupak: www.ozon.ru/context/detail/id/2768771
To be honest, this is something like a copy-paste from Petzold and Richter, but without this gasket, it may be difficult to master Richter
3 We read Richter: www.ozon.ru/context/detail/id/116668
This is just the bible of programming under Windows, however, without preparation you will not master it. Shows how you can manipulate memory, inject your code into other people's processes, synchronize threads - just a godsend, in general =)
If Windows - study WinAPI. Specifically for your task for a head-on solution - GetSystemTime, CreateFile, WriteFile, CloseHandle. Well, maybe a couple more APIs.
Yes, WinAPI is a C-based interface, so OOP can be perfectly dispensed with.
I would suggest reading the next chapter. And on the task - to look for a function that returns the system time. And also deal with file streams.
To begin with, I advise the author of the question to understand and realize that C ++ is such a language where the standard library provides only basic needs, and everything else is provided by countless third-party libraries (both C- and plus) written at the moment.
Of course, WinAPI is a system interface, just like the POSIX standard, but I don't understand why everyone here began to advise it. Dmitry Kovalsky correctly noted - most likely, file streams in the standard library will be enough to write to a file. Busta is enough for many other things. It is with them that we must begin. It is not worth using vinapi directly without a good reason today. It's better to look for cross-platform libraries first.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question