ok thanks, for the music idk what API is.... ill just zip the files with the radio and send that to my friends if its too compilcated to compile the music with it or whatever
EDITTED: uh oh, another problem, In the code for anything i type it goes straight to "rock" even when i type metal or techno and i cant figure out why. and the loops function and switch functions are really complicated (for me)but ill keeptryin to shove it in my head lol
Code:
#include <iostream>
using namespace std;
int main()
{
std::string r;
int rock2;
int rock3;
int rock1;
cout<<"Hello welcome to My Custom Radio.\n" "Please choose the kind of music you would like to listen to today\n" "\n" "1 = rock\n" "2 = metal\n" "3 = Techno\n" "\n";
cin>> r;
cin.ignore();
if ( r == "rock", 1 ) {
cout<<"\n" "You have chosen Rock, Please choose a song to listen to: \n" "\n" "1. Crazy Train\n" "2. IronMan\n" "3. Black Parade\n" "4. Numb\n" "\n" ;
cin>> rock1;
cin.ignore();
}
if ( rock1 == 1 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( rock1 == 2 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( rock1 == 3 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( rock1 == 4 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( r == "metal", 2 ) {
cout<<"\n" "You have chosen Metal, Please choose a song to listen to: \n" "\n" "1. Teenagers\n" "2. In the End\n" "3. Killing in the name of\n" "4. Gonna Die\n" "\n" ;
cin>> rock2;
cin.ignore();
}
if ( rock2 == 1 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( rock2 == 2 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( rock2 == 3 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( rock2 == 4 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( r == "techno", 3 ) {
cout<<"\n" "You have chosen Techno songs, Please choose a song to listen to: \n" "\n" "1. Around the World 1\n" "2. Around the World 2\n" "3. popcorn1\n" "4. loop3\n" "\n" ;
cin>> rock3;
cin.ignore();
}
if ( rock3 == 1 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( rock3 == 2 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( rock3 == 3 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
if ( rock3 == 4 ) {
cout<<"\n" "Sit back, relax, and enjoy your music!";
}
cin.get();
}
[\CODE]