#include <bits/stdc++.h>
#include <windows.h>
#define l1 262
#define l2 294
#define l3 330
#define l4 349
#define l5 392
#define l6 440
#define l7 493
#define n1 532
#define n2 588
#define n3 660
#define n4 698
#define n5 784
#define n6 880
#define n7 988
#define h1 1046
#define h2 1175
#define h3 1319
#define h4 1397
#define h5 1568
#define h6 1760
#define h7 1976
#define A 1600*1.25
#define B 800*1.25
#define C 400*1.25
#define D 200*1.25
#define E 100*1.25
#define F 50*1.25
#define S(i) Sleep(i)
#define f(i,j) Beep(i,j)
using namespace std;
vector<string> liebiao;
void NeverGonnaGiveYouUp() {
cout << "《Never Gonna Give You Up》" << endl;
f(h1, C+D), f(h2, C+D), f(n5, C);
f(h2, C+D), f(h3, C+D), f(h5, E), f(h4, E), f(h3, E), f(h1, E);
cout << "演唱:Rick Astley" << endl;
f(h1, C+D), f(h2, C+D), f(n5, C);
f(n5, B+D), f(n5, E), f(n5, E), f(n6, E), f(h1, E), f(n6, E), f(h1, E);
cout << "代码编写:MyNameIsikun" << endl;
f(h1, C+D), f(h2, C+D), f(n5, C);
f(h2, C+D), f(h3, C+D), f(h5, E), f(h4, E), f(h3, E), f(h1, E);
cout << "曲谱来源:bilibili-简单的干草块" << endl;
f(h1, C+D), f(h2, C+D), f(n5, C);
f(n5, B+D), f(h1, E), f(h1, E), S(D), f(h1, E), f(h1, E);
S(C), cout << "We're", f(n6, D), cout << " no", f(n7, D), cout << " strangers", f(h1, D), f(h1, D), cout << " to", f(h2, D), cout << " love.", f(n7, D+E);
f(n6, E), f(n5, D), f(n5, B), S(C);
S(D), cout << "\nYou", f(n6, D), cout << " know", f(n6, D), cout << " the", f(n7, D), cout << " rules,", f(h1, D), f(n6, D), S(D), cout << " and", f(n5, D);
cout << " so", f(h5, D), S(D), cout << " do", f(h5, D), cout << " I.", f(h2, B+D);
S(D), cout << "\nA", f(n6, D), cout << " full", f(n6, D), cout << " commitments", f(n7, D), f(h1, D), f(n6, D), cout << " what", f(h1, D), cout << " I'm", f(h2, D);
S(D), cout << " thinking", f(n7, D), f(n6, D), cout << " of.", f(n6, E), f(n5, B+E);
S(D), cout << "\nYou", f(n6, D), cout << " shouldn't", f(n6, D), f(n7, D), cout << " get", f(h1, D), cout << " this", f(n6, D), cout << " from", f(n5, C);
cout << " any", f(h2, D), f(h2, D), cout << " other", f(h2, D), f(h3, D), cout << " guy.", f(h2, B);
cout << "\nI", f(h1, B+D), cout << " just", f(h2, D), cout << " wanna", f(h3, D), f(h1, D);
cout << " tell", f(h2, D), cout << " you", f(h2, D), cout << " how", f(h2, D), cout << " I", f(h3, D), cout << " feeling.", f(h2, D), f(n5, D), f(n5, B);
S(C), cout << "\nGotta", f(n6, D), f(n7, D), cout << " make", f(h1, D), cout << " you", f(n6, D);
S(D), cout << " understand.", f(h2, D), f(h3, D), f(h2, D), S(C), cout << "\nNever", f(n5, E), f(n6, E), cout << " gonna", f(h1, E), f(n6, E);
cout << " give", f(h3, D+E), cout << " you", f(h3, D+E), cout << " up.", f(h2, C+D), cout << "\nNever", f(n5, E), f(n6, E), cout << " gonna", f(h1, E), f(n6, E);
cout << " let", f(h2, D+E), cout << " you", f(h2, D+E), cout << " down.", f(h1, E), f(n7, E), f(n6, C), cout << "\nNever", f(n5, E), f(n6, E), cout << " gonna", f(h1, E), f(n6, E);
cout << " run", f(h1, C), cout << " a", f(h2, D), cout << " round", f(n7, D), f(n6, D), cout << " and", f(n5, D), S(D), cout << " desert", f(n5, D);
f(h2, C), cout << " you.", f(h1, C), S(C), cout << "\nNever", f(n5, E), f(n6, E), cout << " gonna", f(h1, E), f(n6, E);
cout << " make", f(h3, D+E), cout << " you", f(h3, D+E), cout << " cry.", f(h2, C+D), cout << "\nNever", f(n5, E), f(n6, E), cout << " gonna", f(h1, E), f(n6, E);
cout << " say", f(h5, C), cout << " goodbye.", f(n7, D), f(h1, E), f(n7, E), f(n6, C), cout << "\nNever", f(n5, E), f(n6, E), cout << " gonna", f(h1, E), f(n6, E);
cout << " tell", f(h1, C), cout << " a", f(h2, D), cout << " lie,", f(n7, D), f(n6, D), f(n5, D), S(D), cout << " and", f(n5, D);
cout << " hurt", f(h2, D), f(h1, D), cout << " you.", f(h1, B), S(C);
}
void build() {
liebiao.push_back("Never Gonna Give You Up(未完成)");
}
void solve() {
cout << "点歌列表:" << endl;
for (int i = 0; i < liebiao.size(); ++i) {
cout << i + 1 << "." << liebiao[i] << endl;
}
cout << "请说出你要点的歌的编号:" << endl;
}
int main() {
build(), solve();
int sss;
cin >> sss;
cout << endl;
if (sss == 1) {
NeverGonnaGiveYouUp();
} else {
cout << "没有这首歌。。。";
}
return 0;
}
Orz
看到的希望能在下面评论一下qwq