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.
#include<iostream.h>
#include<conio.h>
void main()
{
    student s;
    s.show();
    getch();
}
class student
{
    int age;
    public:
    void show();
};
void student::show()
{
    age = 5;
    cout << age;
}
 
     
    