Actually, it's very bad code, as manutd points out.
1) Illegal form of main()
used
2) Made with a compiler at least 25 years old
3) Using functions that don't exist in today's compilers
4) Using headers that don't exist in most compilers
5) No comments make the code completely useless as a teaching tool
IMO, this does not qualify as a CODE Snippet.
It is nicely formatted though, but the indenting needs to be a tad more consistent.