Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ctype.h>
- #include <stdio.h>
- int main(void) {
- char s[100];
- printf("文字列(100 文字未満): ");
- fgets(s, 100, stdin);
- printf("記号: ");
- for (char *p = s; *p; ++p) {
- if (!isalnum(*p)) {
- putchar(*p);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement