Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
C言語のサンプル
unsigned char karaoke[]="今\0宵\0も\0ど\0こ\0か\0ら\0現\0れ\0る \0"
・・・略・・・
while (kbhit()==0)
{
int status;
leng2=varread(0);
if ((karaoke[pt]!='*') && (leng1 != leng2))
{
printf ("%s",&karaoke[pt]);
pt+=strlen(&karaoke[pt])+1;
}
leng1=leng2;
status = getstatus();
if ((status & 1) != 0) break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment