Unportable code alarm!
You're including
conio.h, this isn't a standard library file
iostream.h is not a C header, it's a C++ header, so you posted your code in the wrong forum
Aaargh, the terrible
void main() , it's evil, replace it with
int main() (read
this).
This is not C code, this is C++ code (this means that you've posted in the wrong forum), consider using new style header files (if your compiler supports it), so:
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
#include<iostream.h>
would become:
#include<cstdio>
#include<conio.h>
#include<cstdlib>
#include<cstring>
#include<iostream>
Note: This is definitely (rubbish) C++ code (mixed with C),
cout is an object, and C isn't an object oriented language