cross-platform tag

4 questions


1 answers
82 views
0
To detect OS (OS X/Linux/Windows, etc.) on a C preprocessor?

I'm going to make a C/C++ code that supports multiple platformsYou want to determine which platform the preprocessor is using.Where can I find relevant information?


1 answers
117 views
0
How do I get the current date and time in C++?

I want to know the current time and date regardless of the platform.Help me

2 years ago

1 answers
131 views
0
How do I find my home directory?

I need to find the home directory path of the logged in userWhat I'm using on Linux isos.getenv(HOME)I can't do this on Windows.Is there a function that can use both Windows and Linux?


1 answers
96 views
0
Are there any other opening letters other than \n? Or is there another way to open it?

\nIs there any other text that goes to the next line? I can't.


© 2024 OneMinuteCode. All rights reserved.