Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- int value;
- char* key;
- printf("入力:");
- scanf("%d%s",&value, key);
- switch(*key){
- case 'a':
- /* 処理1 */
- break;
- case 'b':
- /* 処理2 */
- break;
- case 'c':
- /* 処理3 */
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement