Password program not working...im working with dev c++ and it dosent recognize conio.h...please help...what shoud i do??maybe i have another errors...please say to correct it.tnx
#include<string.h>
#include<iostream>
#include<stdio.h>
#include<conio.h>
using namespace std;
void main()
{
char pass[5];
int o;
string password= "password";//this is the password
for(int i=0;i<5 ;i++)
{
pass[i]=_getch();
_putch('*');
}
string a(pass);
if(a==password)
{cout<<"correct"<<endl;}
else
{cout<<"wrong"<<endl;}
}