Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- User Input
- C2 1.25
- char userNoteName[15][15];
- //15 is arbitrary, ideally I want to use variables
- //and that the number of inputted values would be unknown.
- printf("Enter notes one at a time, in the format A#4 3,n");
- printf("where the first string is the note, and the numbern");
- printf("that follows is the duration.n");
- printf("Type Q when you are done entering notes.n");
- fgets(userNoteName,15,stdin);
- printf("%s",userNoteName);
- char userNoteName[2][2];
- scanf("%s%s", &userNoteName[0][0]);
- printf("%sn", userNoteName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement