How should i go to get the numbers in the Frequency[] array passing by the Song[] array?
Maybe im not using the right method at all.
Code:#include <iostream> #include <string> using namespace std; int main(int argc, char *argv[]) { enum Note {B5,As5,A5,Gs5,G5,Fs5,F5,E5,Ds5,D5,Cs5,C5,}; double Frequency[] = { 10,20,30,40,50,60,70,80,90,100,110,120, }; char Song[] = {Ds5,Gs5,Gs5,F5,Ds5,Gs5,Ds5,Ds5,F5,}; for(x=0; x<=9; x++) cout << Song[Note(Frequency[x])]; return 0; }