title: How does C++ interact with the Operating System?
body: <p>Like how JavaScript is able to manipulate the DOM because the browser exposes the DOM to JavaScript in the form of an Object. Is that the same way C++ is able to do things like draw on the screen? Does the Operating System create a C++ interface in the form of C++ classes or does the Operating System have some generic interface that my specific version of C++ knows how to implement?</p>
  
  <p><img src="https://i.stack.imgur.com/pmt6Q.png" alt="enter image description here"></p>