{"action":"created","issue":{"url":"https://api.github.com/repos/huangblue/c100/issues/212","repository_url":"https://api.github.com/repos/huangblue/c100","labels_url":"https://api.github.com/repos/huangblue/c100/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/huangblue/c100/issues/212/comments","events_url":"https://api.github.com/repos/huangblue/c100/issues/212/events","html_url":"https://github.com/huangblue/c100/issues/212","id":238673314,"number":212,"title":"e13.11 测试与习题6，7，8功能相同的库函数isupper,isalpha和isdigit","user":{"login":"huangblue","id":21062610,"avatar_url":"https://avatars0.githubusercontent.com/u/21062610?v=3","gravatar_id":"","url":"https://api.github.com/users/huangblue","html_url":"https://github.com/huangblue","followers_url":"https://api.github.com/users/huangblue/followers","following_url":"https://api.github.com/users/huangblue/following{/other_user}","gists_url":"https://api.github.com/users/huangblue/gists{/gist_id}","starred_url":"https://api.github.com/users/huangblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangblue/subscriptions","organizations_url":"https://api.github.com/users/huangblue/orgs","repos_url":"https://api.github.com/users/huangblue/repos","events_url":"https://api.github.com/users/huangblue/events{/privacy}","received_events_url":"https://api.github.com/users/huangblue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-26T21:21:10Z","updated_at":"2017-06-29T13:07:28Z","closed_at":null,"body":"Test out the system library functions that are equivalent to the macros you developed\r\nin exercises 6, 7, and 8.The library functions are called isupper, isalpha,\r\nand isdigit.You need to include the system header file <ctype.h> in your program\r\nin order to use them."},"comment":{"url":"https://api.github.com/repos/huangblue/c100/issues/comments/311960533","html_url":"https://github.com/huangblue/c100/issues/212#issuecomment-311960533","issue_url":"https://api.github.com/repos/huangblue/c100/issues/212","id":311960533,"user":{"login":"huangblue","id":21062610,"avatar_url":"https://avatars0.githubusercontent.com/u/21062610?v=3","gravatar_id":"","url":"https://api.github.com/users/huangblue","html_url":"https://github.com/huangblue","followers_url":"https://api.github.com/users/huangblue/followers","following_url":"https://api.github.com/users/huangblue/following{/other_user}","gists_url":"https://api.github.com/users/huangblue/gists{/gist_id}","starred_url":"https://api.github.com/users/huangblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangblue/subscriptions","organizations_url":"https://api.github.com/users/huangblue/orgs","repos_url":"https://api.github.com/users/huangblue/repos","events_url":"https://api.github.com/users/huangblue/events{/privacy}","received_events_url":"https://api.github.com/users/huangblue/received_events","type":"User","site_admin":false},"created_at":"2017-06-29T13:07:28Z","updated_at":"2017-06-29T13:07:28Z","body":"//阅读版本\r\n#include <stdio.h>\r\n#include <stdbool.h>\r\n#include <ctype.h>\r\n\r\n#define IS_UPPER_CASE(x)  ( ((x) >= 'A') && ((x) <= 'Z') )\r\n#define IS_UPPER_CASE(x)  ( ((x) >= 'A') && ((x) <= 'Z') )\r\n#define IS_LOWER_CASE(x) ( ((x) >= 'a') && ((x) <= 'z') )\r\n#define IS_ALPHABETIC(x) (IS_UPPER_CASE(x) || IS_LOWER_CASE(x)) ?  true : false\r\n#define IS_DIGIT(x)  ( ((x) >= '0') && ((x) <= '9') )\r\n\r\nint main (void)\r\n{\r\n　    char x;\r\n\r\n　    printf(\"IS_UPPER_CASE(x) and isupper(x)\\n\");\r\n　    x='o';\r\n　    printf(\"x=%c,%i\\n\",x,IS_UPPER_CASE(x));\r\n　    printf(\"x=%c,%i\\n\",x,isupper(x));\r\n\r\n 　   x='\\t';\r\n 　   printf(\"x=%c,%i\\n\",x,IS_UPPER_CASE(x));\r\n　    printf(\"x=%c,%i\\n\",x,isupper(x));\r\n\r\n　    x='K';\r\n 　   printf(\"x=%c,%i\\n\",x,IS_UPPER_CASE(x));\r\n 　   printf(\"x=%c,%i\\n\",x,isupper(x));\r\n\r\n 　   printf(\"------------------------------\\n\");\r\n 　   printf(\"IS_ALPHABETIC(x) and isalpha(x)\\n\");\r\n\r\n　    x='o';\r\n　    printf(\"x=%c,%i\\n\",x,IS_ALPHABETIC(x));\r\n　    printf(\"x=%c,%i\\n\",x,isalpha(x));\r\n\r\n 　   x='\\t';\r\n  　  printf(\"x=%c,%i\\n\",x,IS_ALPHABETIC(x));\r\n  　  printf(\"x=%c,%i\\n\",x,isalpha(x));\r\n\r\n 　   x='K';\r\n 　   printf(\"x=%c,%i\\n\",x,IS_ALPHABETIC(x));\r\n 　   printf(\"x=%c,%i\\n\",x,isalpha(x));\r\n\r\n　    x='9';\r\n　    printf(\"x=%c,%i\\n\",x,IS_ALPHABETIC(x));\r\n　    printf(\"x=%c,%i\\n\",x,isalpha(x));\r\n\r\n\r\n  　  printf(\"------------------------------\\n\");\r\n 　   printf(\"IS_DIGIT(x) and isdigit(x)\\n\");\r\n\r\n　    x='o';\r\n 　   printf(\"x=%c,%i\\n\",x,IS_DIGIT(x));\r\n 　   printf(\"x=%c,%i\\n\",x,isdigit(x));\r\n\r\n　    x='\\t';\r\n　    printf(\"x=%c,%i\\n\",x,IS_DIGIT(x));\r\n　    printf(\"x=%c,%i\\n\",x,isdigit(x));\r\n\r\n　    x='K';\r\n　    printf(\"x=%c,%i\\n\",x,IS_DIGIT(x));\r\n　    printf(\"x=%c,%i\\n\",x,isdigit(x));\r\n\r\n 　   x='9';\r\n　    printf(\"x=%c,%i\\n\",x,IS_DIGIT(x));\r\n　    printf(\"x=%c,%i\\n\",x,isdigit(x));\r\n\r\n\r\n 　   return 0;\r\n}\r\n\r\n"}}
{"actor":{"display_login":"huangblue"}}