title: class prototype in c++ related query
body: <p>how to give a prototype for class in c++ if i want to declare after main()?
  i wrote the following code fragment. i have refered to material available on cplusplus.com, i tried googling it but could not find anything useful.i by mistake the declared the class below main , but then i realised that i had not given a prototype for it and thus my program could not run.</p>
  
  <pre><code>#include&lt;iostream.h&gt;
  #include&lt;conio.h&gt;
  
  void main()
  {
      student s;
      s.show();
  
      getch();
  }
  
  class student
  {
      int age;
      public:
      void show();
  };
  
  void student::show()
  {
      age = 5;
      cout &lt;&lt; age;
  }
  </code></pre>