um how do you make it so if you give an input, wether from an integer value or from pressing a cirtian key like the space bar,then a sound file will make a sound? in c++

#include <windows.h>

Beep(int, int);

which compiler u r using
dos based or windows based >>>?

then know the reply

neither its linux based actually maby not but im using dev c++

also where do you identify the sound file you want to use

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.