Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.45 KB | None | 0 0
  1. // AccordGeneretion.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. typedef struct Tone
  8. {
  9.     string firstnote;
  10.     string secondnote;
  11.     string thirdnote;
  12.     string fourthnote;
  13.     string fifthnote;
  14.     string sixthnote;
  15.     string seventhnote;
  16.     int k;
  17. }Tone;
  18.  
  19. Tone Cmaj, Cmin, CDiezMaj, CDiezMin; // "До" и разновидности
  20. Tone Dmaj, Dmin, DDiezMaj, DDiezMin; // "Ре" и разновидности
  21. Tone Emaj, Emin;                     // "Ми" и разновидности
  22. Tone Fmaj, Fmin, FDiezMaj, FDiezMin; // "Фа" и разновидности
  23. Tone Gmaj, Gmin, GDiezMaj, GDiezMin; // "Соль" и разновидности
  24. Tone Amaj, Amin, ADiezMaj, ADiezMin; // "Ля" и разновидности
  25. Tone Bmaj, Bmin;                     // "Си" и разновидности
  26.  
  27.  
  28. // объявления
  29.  
  30.  
  31. void showTone(Tone foo) {
  32.     cout << foo.firstnote << endl;
  33.     cout << foo.secondnote << endl;
  34.     cout << foo.thirdnote << endl;
  35.     cout << foo.fourthnote << endl;
  36.     cout << foo.fifthnote << endl;
  37.     cout << foo.sixthnote << endl;
  38.     cout << foo.seventhnote << endl;
  39. }
  40.  
  41. int main()
  42. {
  43.     Cmaj.firstnote = "zzzz";
  44.     Cmaj.secondnote = "zzzz";
  45.     Cmaj.thirdnote = "zzzz";
  46.     Cmaj.fourthnote = "zzzz";
  47.     Cmaj.fifthnote = "zzzz";
  48.     Cmaj.sixthnote = "zzzz";
  49.     Cmaj.seventhnote = "zzzz";
  50.    
  51.     showTone(Cmaj);
  52.     return 0;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement