C ++ (press any key, listen to the next) black flash (original)

xiaoxiao2021-03-05  23

DWORD WINAPI ThreadDialogic (void * x) {INT CHANNEL; INT i = 1, currkey = 1;

Char Mesgpath [128], Mesgname [128], Key [10]; CHANNEL = INITCHILD (); if (Channel <= 0) {msg_display ("Setup Channel In Child Proecee IS Error"); Sleep (1000); EXIT 0);} // Soul flying Q515 ReadService (Channel, & Service); Sprintf (Mesgpath, "% s", service.buff [0]); sprintf (Mesgname, "% s", service.buff [1]); PlayFile (MESGNAME, ANY_DIG); //

Sprintf (Mesgname, "% S% S% S", MESGPATH, "YLGG000.VOX"); Playfile (Mesgname, Any_Dig); Re: Sprintf (Mesgname, "% S% S", MESGPATH, "YLGG100.VOX"); PlayFile (MESGNAME, ANY_DIG);

While (1) {getDigit (1, 60, ", key); ClearDTMF (); i = ATOI (key); if (i> 5) {if (currkey> = 5) {currkey = 1;} else { Currkey ;}} else {currkey = atoi (key);} sprintf (Mesgname, "% S10% D.VOX", MESGPATH, CURRKEY); Playfile (Mesgname, Any_Dig); if (key [0] == '*' ) {Break;}} goto re; return 0;

转载请注明原文地址:https://www.9cbs.com/read-35545.html

New Post(0)