title: Run C or C++ file as a script
body: <p>So this is probably a long shot, but is there any way to run a C or C++ file as a script? I tried:</p>
  
  <pre><code>#!/usr/bin/gcc main.c -o main; ./main
  
  int main(){ return 0; }
  </code></pre>
  
  <p>But it says:</p>
  
  <pre><code>./main.c:1:2: error: invalid preprocessing directive #!
  </code></pre>