Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Need help selecting music

Author
Message
Randomhero117
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 5th Jan 2004 01:37
Hey, I'm ok at c++ but I just got DB and need some help. I want to load a list of mid's, and then let the user choose which one to listen to by pressing a number. Any help?

example of what I'm thinking.

cout >>"enter number"
cin <<num;

if num = 1, play music 1
if num = 2, play music 2

just something simple like that. What I have so far is atached, but is obviously missing the input section at the end.
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 5th Jan 2004 02:43
This should work, if it has bugs it's probably because I'm rusty on my syntax&semantics for the music commands.

hope this helps,
juvy

Juvenile Industries
Current Project: The First Room (FPS)
Soon to come:An rts, and a snowball fight game
Randomhero117
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 5th Jan 2004 05:30 Edited at: 5th Jan 2004 05:44
thank you very much, I shall try it

EDIT: I tried it, there were a couple small mistakes, but I got it fixed in no time. Thanks

Login to post a reply

Server time is: 2024-11-25 23:41:40
Your offset time is: 2024-11-25 23:41:40