Midterm will be between 5-6:30 on a T or Th. email me at once if that won't work. If you have a code question, submit via turnin and then email me. Be sure to let me know to look. printf - Full control over printing - 1st argument is a string. * Subsequent arguments are designated in that string using format specifiers (start with %) - Total arguments is 1 + # of format specifiers in the format string. - Examples: To print a real number in 12 spaces with 3 after the decimal point: %12.3f To give a field width to an int or char or string: %8d or %8s * Unless otherwise specified, items print right justified. * Field widths are minimal Comparing Strings - Based on character comparisons * Two strings are equivalent if: corresponding characters of each string are identical to the end of both strings, i.e. both strings are also the same length - C++ has overloaded relational operators for strings - C-strings: Must use string.h routine strcmp "ABCD" != "ABCDE" because the terminating null char in the first string matches agains 'E' in the 2nd string Examples: strcmp("ABC","ABC") returns 0 strcmp("ABCD","ABCDE") returns a negative number int strcmp(char *s1, char *s2) {int idx=0; while (s1[idx]!='\0' && s2[idx]!='\0' && s1[idx]==s2[idx]) idx++; if (s1[idx]==s2[idx]) return(0); if (s1[idx]