title: Assigning the output of cin to variables
body: <p>I'm trying to learn how to use  <code>cin</code> and <code>getline</code> to write a paper grading program that I can use at school. It's kind of a tricky project for a beginner but it lets me know what I need to learn and this is the first thing I need to do. </p>
  
  <pre><code>int main()
  {
      string grader;
      int x;
      cout &lt;&lt; "Who will I be assisting today? ";
      getline (cin, grader);
      cout &lt;&lt; "Hello " &lt;&lt; grader &lt;&lt; ".\n";
      cout &lt;&lt; "How manny questions are on the test you will be grading? ";
      getline (cin, x);
      cout &lt;&lt; "this is a " &lt;&lt; x &lt;&lt; "question test graded by" &lt;&lt; grader &lt;&lt; ".\n";
  }
  </code></pre>
  
  <p>Lets say I answered John Doe for the first question, then 20 for question two. I want it to print "this is a 20 question test graded by John Doe"<br>
  Where am I going wrong? 
  I'm sure it's a stupid mistake but it's bugging me. I'm a novice so sorry for the ignorance. I will have more questions regarding this program that will not have to do with user in-put. is it ok to post these questions here, or start new topics?
  thanks    </p>