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