title: Cannot compile, Lvalue required, in function main
body: <p>I want to compile this, but it gives me error, even i change the quotes, is there any error in header file, please let me know <br></p>
  
  <pre><code>#include&lt;iostream.h&gt;
  #include&lt;conio.h&gt;
  
  
  void main()
  {
  char st[20];
  
  cin&gt;&gt;st;
  
  
  cout&lt;&lt;st&lt;&lt;endl;
  
  if (st = 'a')
  cout&lt;&lt;"This is a";
  
  
  if (st = 'b')
  cout&lt;&lt;"This is b";
  
  getch();
  }
  </code></pre>