Some points to point out in your code:
1. int main (void)
is the correct prototype for the main function and not void main.
2. Dont use #include <conio.h>
which is console based I/O library, it kills program portability.
3. Dont use old style headers in C++. Use something like the #include <iostream>
along with using namespace std ;
to use the I/O functionality.
4. Dont use clrscr()
to clear the screen since its a non standard function.