Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. User Input
  2. C2 1.25
  3.  
  4. char userNoteName[15][15];
  5. //15 is arbitrary, ideally I want to use variables
  6. //and that the number of inputted values would be unknown.
  7. printf("Enter notes one at a time, in the format A#4 3,n");
  8. printf("where the first string is the note, and the numbern");
  9. printf("that follows is the duration.n");
  10. printf("Type Q when you are done entering notes.n");
  11. fgets(userNoteName,15,stdin);
  12. printf("%s",userNoteName);
  13.  
  14. char userNoteName[2][2];
  15. scanf("%s%s", &userNoteName[0][0]);
  16. printf("%sn", userNoteName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement