简体   繁体   English

在Turbo C ++中播放mp3文件时出错

[英]Error while playing mp3 file in Turbo c++

#include<stdio.h>
#include<process.h>
#include<conio.h>

//my mp3 file is in root of drive C
void main()
{
printf("playing file==>C:\preview.mp3");
system("C: & preview.mp3");

getch();

}

This code is not working... on this TC (Turbo C++) illegal command error... help 此代码不起作用...关于此TC(Turbo C ++)非法命令错误...帮助

system() is not a valid command in Turbo C++. system()在Turbo C ++中不是有效命令。 That's only for visual studio's C++. 这仅适用于Visual Studio的C ++。 And also remember that your MP3 file might be above 16 bit and that Turbo C++ runs over MS-DOS which is a 16 bit operating system. 还要记住,您的MP3文件可能高于16位,并且Turbo C ++在16位操作系统MS-DOS上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM