1.
理清楚if-else,条件语句的逻辑关系
2.
#include <stdio.h>
int main()
{
char c;
int count = 0;
int flag = 1;
while (scanf("%c", &c) != EOF)
{
if (c == '\n') break;
if (c == '_' || (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
count++;
else flag = 0;
if (count == 1 && c == '_') flag = 0;
}
if (count > 20 || count < 4) flag = 0;
if (flag) printf("yes");
else printf("no");
return 0;
}