title: C++ SQLite return some values?
body: <p>I am coding a serverside program that uses SQLite. When a client logs in, I want to get its informations from a <code>Userinfo</code> table.  </p>
  
  <p>Its columns are </p>
  
  <ul>
  <li>Userno(int), </li>
  <li>money(int), </li>
  <li>bankmoney(int), </li>
  <li>gender(string), </li>
  <li>name, </li>
  <li>surname</li>
  </ul>
  
  <p>I want to write these informations to a user structure</p>
  
  <pre><code>struct userstruct
  {
    int userno;
    int money;
    int bankmoney
    ....
  }
  </code></pre>
  
  <p>When a user logs in I want to create a new struct and set infos of user from this table via SQLite.</p>