求 Dota2 的大神帮我改改 真不会了
#include"stdio.h"#define qqq "急速冷却"
#define qqw "幽灵漫步"
#define qww "强袭飓风"
#define www "电磁脉冲"
#define eqq "寒冰之墙"
#define eeq "熔炉精灵"
#define eww "灵动迅捷"
#define eew "浑沌陨石"
#define eee "炎阳冲击"
#define eqw "超震声波"
#define P printf
#define S scanf
void main()
{int num=0,a,b,c,num2=0,i;
char n,ch[3]={'q','w','e'},chd[3],chf[3];
P("输入数大于3:");
while((n=getchar())!='d'&&'f')
{
if(ch[3]=n)
{num++;
switch(num){
case 0:P("无技能");c=n;break;
case 1:P("无技能");b=c;c=n;break;
case 2:P("无技能");a=b;b=c;c=n;break;
default:a=b;b=c;c=n;}}else
if(n=='r'&&num>=2)
{num2++;
switch(num2){
case 0:if('c'>'b'>'a')
chd[3]={'a','b','c'};
if('c'>'a'>'b')
chd[3]={'b','a','c'};
if('a'>'b'>'c')
chd[3]={'c','b','a'};
if('a'>'c'>'b')
chd[3]={'b','c','a'};
if('b'>'a'>'c')
chd[3]={'c','a','b'};
if('b'>'c'>'a')
chd[3]={'a','c','b'};
;break;
case 1:chf[3]=chd[3]
if('c'>'b'>'a')
chd[3]={'a','b','c'};
if('c'>'a'>'b')
chd[3]={'b','a','c'};
if('a'>'b'>'c')
chd[3]={'c','b','a'};
if('a'>'c'>'b')
chd[3]={'b','c','a'};
if('b'>'a'>'c')
chd[3]={'c','a','b'};
if('b'>'c'>'a')
chd[3]={'a','c','b'};
}}//上面应该有好的方法上课没听
}
if(n=='d')
p("%c",chd(0)chd(1)chd(2))
if(n=='f')
p("%c",chf(0)chf(1)chf(2))
}//想要运行结果为那些技能名称