title: Add item to Sharepoint Survey list
body: <p>I have a survey list in sharepoint and I'd like to add an answer to the survey using c# code, this I think could be interpreted as add an item to the list so I tried the next but is not working. </p>
  
  <p>How can this be done?</p>
  
  <pre><code>using (SPSite site = new SPSite("http://user-pc"))
  {
      using (SPWeb web = site.RootWeb)
      {
          try
          {
              SPList olist = web.Lists["JobSchedulle"]; //&lt;- Name of the survey in sharepoint 2010
              SPListItem item = olist.Items.Add();
              item[5] = "good";// &lt;- this survey only has one question, and is a text option ..
              item.Update();
  
          }
          catch {
              Console.ReadLine();         
          }       
      }
  }
  </code></pre>