title: the first of string variables of struct can not receive input in Win32 Console Application in vs2015
body: <p>string variables of struct can not receive input in Console Application in visual studio 2015 ,The problem is:when I run the app in console,the first variable always skipped and receive NULL。how should I fix this bug?</p>
  
  <pre><code>struct _comStrc
  {
      char sNo[COM_PERO_LEN];
      char sType[COM_PERO_LEN];
      char sWhereCounter[COM_PERO_LEN];
      float price;
      int iTotal;
      long lDate;
  };
  
      gets_s(m_comm.sNo,COM_PERO_LEN );
  
      gets_s(m_comm.sType, COM_PERO_LEN);
  
      gets_s(m_comm.sWhereCounter, COM_PERO_LEN);
  
      cin &gt;&gt; m_comm.price;
  
      cin &gt;&gt; m_comm.iTotal;
  
      cin &gt;&gt; m_comm.lDate;
  </code></pre>