1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#include<iostream>
#include<string>
using namespace std;
string notes [12] = { "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B" };
void scale() {
string scalechoice;
cin >> scalechoice;
if (scalechoice == "Cmaj")
cout << notes[0] << ", " << notes[2] << ", " << notes[4] << ", " << notes[5] << ", " << notes[7] << ", " << notes[9] << ", " << notes[11] << ", " << notes[0] << endl;
}
int main()
{
string selection;
cout << "Which scale would you like? ";
void scale();
system("PAUSE");
return 0;
}
| |