Created
July 27, 2018 05:31
-
-
Save fosawa/6a83da93f745fc57ce3106d187393b16 to your computer and use it in GitHub Desktop.
C言語のサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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