what is the c++ module equivalent of Python's "import os"?
Any time I try to google "c++ version of python os", it shows me how to get the operating system version in either python or c++.
There isn't a direct equivalent in C++, but you can achieve same things by other means. For example, <filesystem>
header has functionality to work with paths, some OS-specific headers like <Windows.h>
have more functionality at the cost of being non-portable and so on. Depends on what you want to do.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.