标题:做个心理测试游戏用到goto 语句,求大侠看看哪错了
取消只看楼主
xiaolong5201314
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2008-8-14
 问题点数:0 回复次数:1 
做个心理测试游戏用到goto 语句,求大侠看看哪错了
性格测试:
#include<stdio.h>
void main()
{
    int i;
no1:
{
printf("有一天在路上,有人突然对你大叫:"有人在追着我.请帮帮我吧."仔细一看,说话的那个人竟然是你的偶像.这时候你认为追着他的人是谁??\n1.影迷2.记者   请选择1或2,以下相同\n");
scanf("%d",&i);
if(i==1) goto no4;
if(i==2) goto no7;
}
no2:
{
printf("终於帮他把追逐者摆脱了,而他也向你微笑示意,此时你认为他的意思是??\n1.单纯的微笑着2.衷心的感谢你\n");
scanf("%d",&i);
if(i==1) goto no5;
if(i==2) goto no9;
}
no3:
{
    printf("当这段际遇结束後.而他正欲离去,你希望他对你说什麽??\n1.对你握手说再见2.对你吻别\n");
scanf("%d",&i);
if(i==1) printf("性格A.唯命是从型 你是一个附合度高的人,但缺乏自我的主张跟个性;你最好多考虑一下自己的观点.\n");
if(i==2) printf("性格B.容易软化型 在爱情方面,你是一个依从者,会跟随对方的意见去做,欠缺自我肯定的意志力\n.");
}
no4:
 {printf("为了闪避影迷的追逐,你会将他带到那里躲避??\n1.人多的大型商场 2.人少的小巷子里\n");
scanf("%d",&i);
if(i==1) goto no7;
if(i==2) goto no2;
 }
 no5:
 {printf("为了闪躲穷追不舍的影迷,你会帮他选择那种伪装道具?\n1.帽子2.眼镜");
scanf("%d",&i);
if(i==1) goto no13;
if(i==2) goto no6;
 }
 no6:
 {printf("当你们渡过了这惊险的一天後,在离别时他留下了电话号码给你,你会如何??\n 1.等过几天後再打给他2.电话可能是假的算了");
scanf("%d",&i);
if(i==1) printf("性格D.坚持己见型  你是一个坚持己见的人,一但作出决定就不会受他人影响而改变,却容易树立敌人.\n");
if(i==2) printf("性格B.容易软化型 在爱情方面,你是一个依从者,会跟随对方的意见去做,欠缺自我肯定的意志力\n.");
 }
 no7:
 {printf("7.当你们得选择搭乘交通工具闪避时,你会选择那种交通工具?\n1.公共汽车2.搭计程车");
scanf("%d",&i);
if(i==1) goto no11;
if(i==2) goto no2;
 }
 no8:
 {printf("当你们被影迷档住去路时,此时的影迷大概多少人??\n1.5人左右  2.10人左右\n");
scanf("%d",&i);
if(i==1) goto no5;
if(i==2) goto no12;
 }
no9: printf("当你们躲过了他们的追逐,此时他说:"今天我们一起去逛逛吧?"你们会到那??\n1.电影院  2.餐饮店 ");
scanf("%d",&i);
if(i==1) goto no3;
if(i==2) goto no10;
 no10:
 {printf("到了互相告别的时刻,你会对他说........??\n1.今天很高兴能帮助你  2.能有机会再见面吗?\n");
scanf("%d",&i);
if(i==1) printf("性格A.唯命是从型 你是一个附合度高的人,但缺乏自我的主张跟个性;你最好多考虑一下自己的观点.\n");
if(i==2) printf("性格C.意志变化型 你并不容易被摇动意志,虽然心理不同意,但基於友情跟爱情,你还是会被动摇.\n");
 }
 no11:
 {printf("当你们被计者追到,计者问到诽闻时,你认为他的对象可能是.......??\n 1.圈内人士  2.圈外人士\n);
scanf("%d",&i);
if(i==1) goto no9;
if(i==2) goto no12;
 }
 no12:
 { printf("当他准备了谢礼给你时,你想可能是那种物品?\n1.他新买的手表 2.他用过的饰品\n");
scanf("%d",&i);
if(i==1) goto no6;
if(i==2) goto no10;}
no13:
{printf("他为了答谢你请你吃东西,可是却是你不喜欢的食物,此时你会....?\n1.免强吃下  2.拒绝吃下\n");
if(i==1) printf("性格C.意志变化型 你并不容易被摇动意志,虽然心理不同意,但基於友情跟爱情,你还是会被动摇.\n");
if(i==2) printf("性格D.坚持己见型 你是一个坚持己见的人,一但作出决定就不会受他人影响而改变,却容易树立敌人.\n");
}
}
搜索更多相关主题的帖子: goto 心理测试 语句 游戏 
2008-08-14 22:58
xiaolong5201314
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2008-8-14
得分:0 
这是运行显示,啥错误啊?
Cpp1.cpp
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xd3'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xd0'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xc8'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xcb'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xd4'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xda'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xd7'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xb7'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xd7'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xc5'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xce'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xd2'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xa3'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xae'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xc7'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xeb'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xb0'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xef'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xb0'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xef'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xce'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xd2'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xb0'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xc9'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xa3'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(6) : error C2018: unknown character '0xae'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xbd'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xf1'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xcc'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xec'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xce'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xd2'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xc3'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xc7'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xd2'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xbb'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xc6'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xf0'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xc8'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xa5'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xb9'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xe4'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xb9'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xe4'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xb0'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xc9'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xa3'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(53) : error C2018: unknown character '0xbf'
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(66) : error C2001: newline in constant
C:\Users\zilong\Desktop\Debug\Cpp1.cpp(67) : error C2146: syntax error : missing ')' before identifier 'scanf'
执行 cl.exe 时出错.

Cpp1.exe - 1 error(s), 0 warning(s)
2008-08-15 22:54



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-228342-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016706 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved