title: C++ displaying HTML code as a website (CGI Program)
body: <p>I hope I explain this right.. but I need my C++ program to display an HTML website. The code that I have right now only displays the text. How do I make it so it is actually displayed like a website (using HTML code)? I am going to use the .exe file uploaded to a server to display the page. </p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      cout &lt;&lt; "Content-type: text/plain\n\n";
      cout &lt;&lt; "&lt;h2&gt;My first CGI program&lt;/h2&gt;\n";
      cout &lt;&lt; "&lt;h1&gt;This is a test&lt;/h1&gt;\n";
      cout &lt;&lt; "&lt;h3&gt;Why is this not working&lt;/h3&gt;\n";
  
  
      return 0;
  }
  </code></pre>