About 542,000 results
Open links in new tab
  1. How do I check OS with a preprocessor directive? - Stack Overflow

    Sep 27, 2008 · I need my code to do different things based on the operating system on which it gets compiled. I'm looking for something like this: #ifdef OSisWindows // do Windows-specific …

  2. What languages are Windows, Mac OS X and Linux written in?

    Feb 24, 2009 · The Windows API, the Windows kernel (both of these are in essence what an operating system is) are written in C. Years ago I was given some leaked code for both …

  3. Writing an operating system in C++ - Stack Overflow

    Jan 27, 2010 · what is a way to create a my own operating system using c++. I have been created boot loader (using nasm,qemu) but I haven't knowledge to add an kernel to this boot loader.

  4. c++ - How does a compiled program interact with the OS? - Stack …

    Oct 10, 2012 · How does this machine code interact with the operating system in order to do things like getting input from the keyboard ? To me, it seems that the machine code should run …

  5. c++ - Are there any macros to determine if my code is being …

    Feb 3, 2016 · However, you are asking about C++. What compiler are you using? THis makes a big difference as to how you check for a version of the operating system, as there is no single …

  6. c++ - How do I find the name of an operating system? - Stack …

    The questions pretty simple. I want want a function (C++) or method which will, on call, returun something like "Windows" //or "Unix" Nothing fancy, I dont need the version numbe or …

  7. c++ - What Does an OS Actually Do? - Stack Overflow

    May 5, 2010 · An operating system is the software on a computer that manages the way different programs use its hardware, and regulates the ways that a user controls the computer. …

  8. operating system - Kernel development and C++ - Stack Overflow

    Google's new-coming operating system Fuchsia is based on the kernel called Zircon, which is written mostly in C++, with some parts in assembly language [1] [2].

  9. How can I run a program without an operating system?

    Sep 1, 2025 · How do you run a program all by itself without an operating system running? Can you create assembly programs that the computer can load and run at startup, e.g., boot the …

  10. Get the current operating system during runtime in C++

    Jul 19, 2020 · I need to figure out the operating system my program is running on during runtime. I'm using Qt 4.6.2, MinGW and Eclipse with CDT. My program shall run a command-line …