玄1关
违规紫衫
#include <bits/stdc++.h>
using namespace std;
int songs[11];
char c;
int cunchu[30];
int cnt=0;
int r=0;
int main() {
srand(time(0));
string names[500]= {"1-1 Glaciaxion","1-2 Eradication Catatrophe","1-3 Credits","1-4 Dlyrotz","1-5 Engine Start!!(melody mix)","2-1 光","2-2 Winter Cube","2-3 混乱-confusion","2-4 Cipher/2&//<|0","2-5 Fuli Auto Shooter","3-1 HumaN","3-2[PRAW]","3-3 Cereris","3-4 Pixel Rebelz","3-5 Non Melodic Ragez(MUG edit)","4-1 Sultan Rage","4-2 Class Memories","4-3 -SURREALISM-","4-4 Bonus Time","4-5 Energy Synergy Matrix","5-1 NYA!!!","5-2 Junxion between life","5-3 cryout","5-4 Reimei","5-5 尊师 The Guru~","5-X Spasmodic","5-6 Leave All Behind","6-1 Colorful days","6-2 micro.wav","6-3 重生","6-4 No one yes man","6-5 方舟","6-X Igallta","7-1 Clock Paradox","7-2 Chronologika","7-3 Nick of time","7-4 Chronomia","7-5 La Campenella","7-X Rrhar'il","8-1 Crave wave","8-2 The Cariot Reviial","8-3 Luminescence","8-4 Retribution","8-X Destruction 3,2,1","8-Y Distorted Fate","a-1 希腊字母不会写","a-2 WATER","a-3 Miracle Forest","a-4 MOBLIYS","a-5 Lyrith-迷宫[日文]","b-1 Dimurge","b-2 Demonkin","b-3 Re Nascense","b-4 Ark","b-5 After dawn","b-6 Infinity Energy Overdoze","c-1 Khalid","c-2 Qamtom Hyperspace","c-3 Franky...","c-4 Panic paradox","c-5 Re::End of the dream","101-1 Another Me","101-2 mechanated","101-3 life flashes before weeb eyes","101-4 Break Though The Barrier","101-5 Chronostasis","102-1 infinity heaven","102-2 Disorder","102-3 Chrss+soul","103-1 GOODTEK","103-2 GOODBOUNCE","103-3 GOODWORLD","103-4 GOODFORTUNE","103-5 GOODRAGE","104-1 Intialize","104-2 樱树街道","104-3 Get Ready!","104-4 Volcanic","104-5 XING","105-1 Starting Point","105-2 Time to Night Sky","105-3 HAZARD","105-4 Another Me","105-5 Don't Never Around","105-6 RESSiSTANCE","107-1 Apocalypse","107-2 Protoflikier","107-3 Horizon Blue","107-4 You Are The Miserable","107-5 Stasis","108-1 Shadow","108-2 心之所向","108-3 inferior","109-1 盏茗","109-2 青芽","109-3 瓷岁","109-4 Feast远东之宴","110-1 神话","110-2 El ultimo baile","110-3 Trojan","110-4 Temporal Shifting","110-5 Ad astra per aspera","110-6 A journey to the moonlight","111-1 Journey With You","111-2 Secret Illumination","111-3 Interted world","111-4 [Japanese]","111-5 Manifold Hypothesis","111-6 K.moe(VIP)","112-1 领土战争","112-2 TECHNOPOLIS 2085","112-3 祈-我与神...","113-1 零号车辆","113-2 Xenolith","113-3 Artificial Existence","113-4 Indelibable scar","e-1 SATELLITE","114-1 幽世桔梗","114-2 千紫萬紅","114-3 明镜烈火","115-1 Cuvism3","115-2 iL Artifact","115-3 a truth seeker -Communication with Utopia will be lost"};
for(int i=1;i<=5;i++){
int index = rand() % 235;
cout<<names[index]<<endl;
}
while(1)
{
cin>>c;
for(int i=1;i<=5;i++)//曲目
{
r++;
cunchu[r]=c;
for(int j=1;j<=50;j++)//曲目的各个字符
{
for(int k=1;k<=26;k++)
{
if(names[cunchu[k]]==string(random[index][j])) cout<<names[index][j];
}
}
cout<<endl;
}
}
return 0;
}
有编译失败。代码目标:先便利每首歌,然后遍历每首歌的每个字母。然后看存储里的东西,一个一个便利存储的东西。如果有了的话,输出他即可。