title: How do I capitalize the first letter in my string using c?
body: <p>My project is to create a source string of my first name, last name, and student id in lower case letters and print them out on separate lines and the first letter of my name will be capitalized.  I have looked at many sample codes and have not been able to figure this out.  Also, my student id is supposed to print out as a number and not a string.  Not sure what that even means.  Here is what I have so far:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;ctype.h&gt;
  
  int main (void)
  {
    char str[] = "david house n966898";
  
    char f_name[6], l_name[6], st_id[8];
  
    strcpy(f_name, strtok(str, " "));
    strcpy(l_name, strtok(NULL, " "));
    strcpy(st_id, strtok(NULL, " "));
  
    printf("First Name: %s\n", f_name);
    printf("Last  Name: %s\n", l_name);
    printf("Student ID: %s\n", st_id);
  
  
    return 0;
  
  }
  </code></pre>
  
  <p>Please Help!</p>