Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // AccordGeneretion.cpp: определяет точку входа для консольного приложения.
- //
- #include <iostream>
- using namespace std;
- typedef struct Tone
- {
- string firstnote;
- string secondnote;
- string thirdnote;
- string fourthnote;
- string fifthnote;
- string sixthnote;
- string seventhnote;
- int k;
- }Tone;
- Tone Cmaj, Cmin, CDiezMaj, CDiezMin; // "До" и разновидности
- Tone Dmaj, Dmin, DDiezMaj, DDiezMin; // "Ре" и разновидности
- Tone Emaj, Emin; // "Ми" и разновидности
- Tone Fmaj, Fmin, FDiezMaj, FDiezMin; // "Фа" и разновидности
- Tone Gmaj, Gmin, GDiezMaj, GDiezMin; // "Соль" и разновидности
- Tone Amaj, Amin, ADiezMaj, ADiezMin; // "Ля" и разновидности
- Tone Bmaj, Bmin; // "Си" и разновидности
- // объявления
- void showTone(Tone foo) {
- cout << foo.firstnote << endl;
- cout << foo.secondnote << endl;
- cout << foo.thirdnote << endl;
- cout << foo.fourthnote << endl;
- cout << foo.fifthnote << endl;
- cout << foo.sixthnote << endl;
- cout << foo.seventhnote << endl;
- }
- int main()
- {
- Cmaj.firstnote = "zzzz";
- Cmaj.secondnote = "zzzz";
- Cmaj.thirdnote = "zzzz";
- Cmaj.fourthnote = "zzzz";
- Cmaj.fifthnote = "zzzz";
- Cmaj.sixthnote = "zzzz";
- Cmaj.seventhnote = "zzzz";
- showTone(Cmaj);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement