bool is_pangram( const char *str)
{
bool all_hit[25];
memset(all_hit,0x00,sizeof(bool)*25);
int counter = 0;
int bit_block = 0;
do
{
bit_block |= 1 << (*(str+counter) | 0x20) - 0x30);
}while( *(str+counter) != '/0');
return bit_block == 0x1FFFFFF ? true : false;
}
늦게봐서 작동도 확인 못하고 올렸다. 작동하나? - dc App
아이쿠 counter++를 안 해줬네 ㅜㅜ.. 나가리 ㅜㅜ - dc App
수정해서 다시 올려야지 ㅋㅋ - dc App