How can I make the cin.getline work?
<pre><code>void CDepartment::Engg() {         
 system("cls");
 Invent.welcome();
 cout&lt;&lt;"\t     (ADD AN ASSET)\n=========================================================\n\t COLLEGE OF ENGINEERING\n=========================================================\n";

 cout&lt;&lt;"\tWhich department?\n\t-Civil Engineering\n\t-ECE and CPE\n\t-[Ba]ck\n\n\tChoice:";
 cin.getline(choice_1,20);  

 if (strcmp(choice_1,back)==0){
                     Invent.add();}
 Invent.Info();    
}  
</code></pre>

<p><code>choice_1</code> is declared globally. It does not work. It skips the <code>cin.getline(choice_1,20);</code>. How can I make it to work?</p>
