用VC++编译通过,代码如下(其中a.wav为自己给出):#include#pragma comment(lib,"winmm.lib")void main(){ PlaySound("C:\\a.wav",0,SND_FILENAME|SND_SYNC);}
void main(char * args[],int argn){ if (argn>1) system("start *grgs[1]")}