| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3694 人关注过本帖
标题:[Error] ld returned 1 exit status
只看楼主 加入收藏
周飞扬
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2019-1-31
结帖率:0
收藏
 问题点数:0 回复次数:1 
[Error] ld returned 1 exit status
麻烦大佬们看一下,哪出问题了





#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
char name[100];
int za=0,zb=0,zc=0,zd=0,ze=0,zf=0,ga=0,gb=0,gc=0,gd=0,ge=0,gf=0,i,a,b,c,d,e,f,g,h,jy=0,dj=0,mj,bb,cc,aa=5,jm=0,jb=0,jq=0,js=0,jj=0,ij=1,mb=0,da,egg=0,bmh=0;
int jsl=0,zj,ngmb=0,nn=0,nsl=0,nq=0,jya=20,td=1,qqq,qq=50,qj;
long int ma,jinbi=20;
cout<<"欢迎来到宋景诗是SB庄园!"<<endl;
cout<<"作者:无名氏"<<endl;
cout<<"伪劣必究!!!"<<endl;
Sleep(1000);
cout<<"请输入庄园的名字:"<<endl;
gets(name);
cout<<"你的庄园就叫"<<name<<"了。"<<endl;
cout<<"正在加载中"<<endl;
cout<<"(.";
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".)"<<endl;
system("cls");
cout<<"加载成功"<<endl;
while(1){
i--;
cout<<"你想要"<<endl;
cout<<"1.播种 2.仓库 3.商店 4.出售果物 5.订单 6.抽奖 7.快速播种 8.作弊器(不建议使用)9.偷菜 10.滚蛋 11.把宋景诗杀了 12.魔性宋景诗在线打牌"<<endl;
cin>>a;
system("cls");
//等级系统
if (a==10) {break;
}
if (a==11)
{
    cout<<"正在杀宋景诗中"<<endl;
    cout<<"恭喜成功,正在拾取jj中"<<endl;
    cout<<"ok,再见!"<<endl;
    break;
}
if (a==12)
{
    cout<<"沙比,再见!"<<endl;
    break;
}
if(jy>=aa){
jy-=jy;
dj+=1;
cout<<"恭喜你杀了宋景诗了!"<<endl;
cout<<"你是"<<dj<<"级。"<<endl;
if(dj%2==0)jya*=2;
aa+=jya;
}
//播种
if(a==1){
cout<<"你要种1.小麦 2.玉米 3.胡萝卜 4.大豆 5.甘蔗 6.南瓜"<<endl;
cout<<"你要做11.面包 12.饲料 13.爆米花 14.喂王狗 15.南瓜面包 16.喂王猪"<<endl;
cin>>b;

if(b==1){
if(za<=0){cout<<"你没有小麦种子!"<<endl;continue;}
else {
cout<<"播种成功!"<<endl;
za-=1;
cout<<"等待3秒种子成熟..." <<endl;
Sleep(3000);
cout<<"成熟了! 你有了两个小麦!"<<endl;
ga+=2;
jy+=2;
Sleep(1000);
cout<<"你加了20000经验!"<<endl;
continue;
}
}
else if(b==2){
if(zb<=0){cout<<"你没有玉米种子!"<<endl;continue;}
else {
cout<<"播种成功!"<<endl;
zb-=1;
cout<<"等待5秒种子成熟..." <<endl;
Sleep(5000);
cout<<"成熟了! 你有了两个玉米!"<<endl;
gb+=2;
jy+=4;
Sleep(1000);
cout<<"你加了4经验!"<<endl;
continue;
}
}
else if(b==3){
if(zc<=0){cout<<"你没有胡萝卜种子!"<<endl;continue;}
else {
cout<<"播种成功!"<<endl;
zc-=1;
cout<<"等待7秒种子成熟..." <<endl;
Sleep(7000);
cout<<"成熟了! 你有了两个胡萝卜!"<<endl;
gc+=2;
jy+=6;
Sleep(1000);
cout<<"你加了6经验!"<<endl;
continue;
}
}
else if(b==4){
if(zd<=0){cout<<"你没有大豆种子!"<<endl;continue;}
else {
cout<<"播种成功!"<<endl;
zd-=1;
cout<<"等待10秒种子成熟..." <<endl;
Sleep(10000);
cout<<"成熟了! 你有了两个大豆!"<<endl;
gd+=2;
jy+=6;
Sleep(1000);
cout<<"你加了10经验!"<<endl;
continue;
}
}
else if(b==5){
if(ze<=0){cout<<"你没有甘蔗种子!"<<endl;continue;}
else {
cout<<"播种成功!"<<endl;
ze-=1;
cout<<"等待15秒种子成熟..." <<endl;
Sleep(15000);
cout<<"成熟了!你有了两个甘蔗!"<<endl;
ge+=2;
jy+=15;
Sleep(1000);
cout<<"你加了15经验!"<<endl;
continue;
}
}
else if(b==6){
if(zf<=0){cout<<"你没有南瓜种子!"<<endl;continue;}
else {
cout<<"播种成功!"<<endl;
zf-=1;
cout<<"等待种子成熟..." <<endl;
Sleep(20000);
cout<<"成熟了!你有了两个南瓜!"<<endl;
gf+=2;
jy+=20;
Sleep(1000);
cout<<"你加了20经验!"<<endl;
continue;
}
}
else if(b==11){
if(jm<1){cout<<"你没有面包烤炉!"<<endl;continue;}
else if(ga<3){cout<<"你没有足够的小麦!"<<endl;continue;}
else{
cout<<"做一个面包要3个小麦!"<<endl;
ga-=3;
cout<<"请等待面包烤好。"<<endl;
Sleep(3000);
cout<<"面包烤好了!"<<endl;
cout<<"你加了5点经验!"<<endl;
jy+=5;
mb+=1;
continue;
}
}
else if(b==15){
if(jm<1){cout<<"你没有面包烤炉!"<<endl;continue;}
else if(ga<5){cout<<"你没有足够的小麦!"<<endl;continue;}
else if(egg<2){cout<<"你没有足够的鸡蛋!"<<endl;continue;}
else if(nn<1){cout<<"你没有足够的牛奶!"<<endl;continue;}
else if(gf<5){cout<<"你没有足够的南瓜!"<<endl;continue;}
else{
cout<<"正在制作中宋景诗中。"<<endl;
ga-=5;
nn--;
egg-=2;
gf-=5;
cout<<"请等待面包烤好。"<<endl;
Sleep(8000);
cout<<"面包烤好了!"<<endl;
cout<<"你加了10点经验!"<<endl;
jy+=10;
ngmb+=1;
continue;
}
}
else if(b==12){
if(js==0){cout<<"你没有饲料机!"<<endl;continue;}
cout<<"你要做 1.鸡饲料 2.牛饲料"<<endl;
cin>>g;
if(g==1){
cout<<"鸡饲料需要3个小麦 ,2个玉米"<<endl;
if(ga<3){cout<<"小麦不够!"<<endl;continue;}
else if(gb<2){cout<<"玉米不够!"<<endl;continue;}
else{cout<<"鸡饲料正在制作中!"<<endl;Sleep(5000);cout<<"制作完成!"<<endl;cout<<"获得经验3"<<endl;jsl+=1;jy+=3;ga-=3;gb-=2;continue;}
}
if(g==2){
cout<<"牛饲料需要3个玉米 ,5个大豆"<<endl;
if(gb<3){cout<<"玉米不够!"<<endl;continue;}
else if(gd<5){cout<<"大豆不够!"<<endl;continue;}
else{cout<<"牛饲料正在制作中!"<<endl;Sleep(5000);cout<<"制作完成!"<<endl;cout<<"获得经验5"<<endl;nsl+=1;jy+=5;gb-=3;gd-=5;continue;}
}
}
else if(b==13){
if(jb==0){cout<<"你没有爆米花机!/n";continue;}
else if(gb<3){cout<<"你没有足够的玉米!/n";continue;}
else{
cout<<"正在制作中..."<<endl;
Sleep(7000);
cout<<"制作完毕!"<<endl;
cout<<"获得5经验!"<<endl;
jy+=5;
gb-=3;
bmh+=1;
continue;
}
}
else if(b==14){
if(jq==0){cout<<"你没有鸡圈!无法喂鸡!"<<endl;continue;}
else if(jsl==0){cout<<"你没有鸡饲料!"<<endl;continue;}
else{
cout<<"已喂鸡,等待下蛋中..."<<endl;
Sleep(5000);
cout<<"获得1个鸡蛋,5个经验!"<<endl;
egg+=1;
jsl-=1;
jy+=5;
continue;
}
}
else if(b==16){
if(nq==0){cout<<"你没有牛圈!无法喂牛!"<<endl;continue;}
else if(nsl==0){cout<<"你没有牛饲料!"<<endl;continue;}
else{
cout<<"已喂牛,等待牛奶中..."<<endl;
Sleep(8000);
cout<<"获得1个牛奶,7个经验!"<<endl;
nn++;
nsl-=1;
jy+=7;
continue;
}
}
}
//播种结束
//仓库开始
else if(a==2){
cout<<"你有"<<za<<"小麦种子!"<<endl;
cout<<"你有"<<zb<<"玉米种子!"<<endl;
cout<<"你有"<<zc<<"胡萝卜种子!"<<endl;
cout<<"你有"<<zd<<"大豆种子!"<<endl;
cout<<"你有"<<ze<<"甘蔗种子!"<<endl;
cout<<"你有"<<zf<<"南瓜种子!"<<endl;
cout<<"你有"<<ga<<"小麦!"<<endl;
cout<<"你有"<<gb<<"个玉米!"<<endl;
cout<<"你有"<<gc<<"个胡萝卜!"<<endl;
cout<<"你有"<<gd<<"个大豆!"<<endl;
cout<<"你有"<<ge<<"个甘蔗!"<<endl;
cout<<"你有"<<gf<<"个南瓜!"<<endl;
cout<<"你有"<<mb<<"个面包!"<<endl;
cout<<"你有"<<jsl<<"个鸡饲料。"<<endl;
cout<<"你有"<<egg<<"个鸡蛋。"<<endl;
cout<<"你有"<<bmh<<"个爆米花。"<<endl;
cout<<"你有"<<jinbi<<"金币!"<<endl;
cout<<"你是"<<dj<<"级。"<<endl;
cout<<"你有"<<jj<<"张奖卷。"<<endl;
if(jm==1)cout<<"面包烤炉"<<jm<<"台。"<<endl;
if(js==1)cout<<"饲料机"<<js<<"台。"<<endl;
if(jb==1)cout<<"爆米花机"<<jb<<"台。"<<endl;
if(jq==1)cout<<"鸡圈1个。"<<endl;
if(nq==1)cout<<"牛圈1个。"<<endl;
continue;
}
//仓库结束
//商店开始
else if(a==3){
cout<<"你想要什么?"<<endl;
cout<<"1.小麦种子 2.玉米种子 3.胡萝卜种子 4.大豆种子 5.甘蔗种子 6.南瓜种子 7.奖卷 8.面包烤炉 9.饲料机 10.鸡圈 11.爆米花机 12.牛圈 13.土地"<<endl;
cin>>c;
if(c==1){
cout<<"小麦种子免费一个。"<<endl;
cout<<"你要买几个?"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
cin>>d;
mj=1;
mj*=d;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<mj){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费"<<mj<<"个金币。"<<endl;
cout<<"快去播种吧!"<<endl;
jinbi-=mj;
za+=d;
continue;
}
}
if(c==2){
if(dj<3){cout<<"等级到1级时解锁!"<<endl;continue;}
else{
cout<<"玉米种子0元一个。"<<endl;
cout<<"你要买几个?"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
cin>>d;
mj=2;
mj*=d;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<mj){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费"<<mj<<"个金币。"<<endl;
cout<<"快去播种吧!"<<endl;
jinbi-=mj;
zb+=d;
continue;
}
}
}
if(c==3){
if(dj<=4){cout<<"等级到5级时解锁!"<<endl;continue;}
else{
cout<<"胡萝卜种子3元一个。"<<endl;
cout<<"你要买几个?"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
cin>>d;
mj=1;
mj*=d;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<mj){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费"<<mj<<"个金币。"<<endl;
cout<<"快去播种吧!"<<endl;
jinbi-=mj;
zc+=d;
continue;
}
}
}
if(c==4){
if(dj<6){cout<<"等级到6级时解锁!"<<endl;continue;}
else{
cout<<"大豆种子5元一个。"<<endl;
cout<<"你要买几个?"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
cin>>d;
mj=5;
mj*=d;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<mj){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费"<<mj<<"个金币。"<<endl;
cout<<"快去播种吧!"<<endl;
jinbi-=mj;
zd+=d;
continue;
}
}
}
if(c==5){
if(dj<8){cout<<"等级到8级时解锁!"<<endl;continue;}
else{
cout<<"甘蔗种子8元一个。"<<endl;
cout<<"你要买几个?"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
cin>>d;
mj=8;
mj*=d;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<mj){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费"<<mj<<"个金币。"<<endl;
cout<<"快去播种吧!"<<endl;
jinbi-=mj;
ze+=d;
continue;
}
}
}
if(c==6){
if(dj<10){cout<<"等级到10级时解锁!"<<endl;continue;}
else{
cout<<"南瓜种子5元一个。"<<endl;
cout<<"你要买几个?"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
cin>>d;
mj=10;
mj*=d;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<mj){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费"<<mj<<"个金币。"<<endl;
cout<<"快去播种吧!"<<endl;
jinbi-=mj;
zf+=d;
continue;
}
}
}
if(c==7){
cout<<"奖卷20金币一个。"<<endl;
cout<<"你要几个?"<<endl;
cin>>d;
mj=20;
mj*=d;
if(jinbi<mj){cout<<"钱不够!"<<endl;continue;}
else{
cout<<"购买成功!"<<endl;
jj+=d;
jinbi-=mj;
}
}
if(c==8){
if(dj<5){cout<<"等级到5级时解锁!"<<endl;continue;}
else if(jm>=1){
cout<<"你已经有了面包烤炉!"<<endl;
continue;
}
else{
cout<<"面包烤炉需要100金币。"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<100){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费100个金币。"<<endl;
cout<<"你可以做面包了!"<<endl;
jinbi-=100;
jm++;
continue;
}
}
}
if(c==9){
if(dj<6){cout<<"等级到6级时解锁!"<<endl;continue;}
else if(js>=1){
cout<<"你已经有了饲料机!"<<endl;
continue;
}
else{
cout<<"饲料机需要75金币。"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<75){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费75个金币。"<<endl;
cout<<"你可以做饲料了!"<<endl;
jinbi-=75;
js++;
continue;
}
}
}
if(c==10){
if(dj<6){cout<<"等级到6级时解锁!"<<endl;continue;}
else if(jq>=1){
cout<<"你已经有了鸡圈!"<<endl;
continue;
}
else{
cout<<"鸡圈需要75金币。"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<100){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费75个金币。"<<endl;
cout<<"你可以做养鸡了!"<<endl;
jinbi-=75;
jq++;
continue;
}
}
}
if(c==12){
if(dj<9){cout<<"等级到9级时解锁!"<<endl;continue;}
else if(jq>=1){
cout<<"你已经有了牛圈!"<<endl;
continue;
}
else{
cout<<"牛圈需要250金币。"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<250){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费250个金币。"<<endl;
cout<<"你可以养牛了!"<<endl;
jinbi-=250;
nq++;
continue;
}
}
}
if(c==11){
if(dj<10){cout<<"等级到10级时解锁!"<<endl;continue;}
else if(jb>=1){
cout<<"你已经有了爆米花机!"<<endl;
continue;
}
else{
cout<<"鸡圈需要300金币。"<<endl;
cout<<"你有"<<jinbi<<"个金币。"<<endl;
if(jinbi<=0){cout<<"钱不够!"<<endl;continue;}
else if(jinbi<300){cout<<"钱不够!"<<endl;continue;}
else {
cout<<"购买成功!"<<endl;
cout<<"花费300个金币。"<<endl;
cout<<"你可以做爆米花了!"<<endl;
jinbi-=300;
jb++;
continue;
}
}
}
if(c==13){
qq*=1.5;
cout<<"土地"<<qq<<"元一块。"<<endl;
cout<<"1.购买 2.让我想想"<<endl;
cin>>i;
if(i==1){
if(jinbi<qq){
cout<<"钱不够!"<<endl;
continue;
}
else{
jinbi-=qq;
td+=1;
cout<<"购买成功!"<<endl;
continue;
}
}
}
//商店结束
}
//订单开始
else if(a==5){
if(ij>10){
cout<<"需要 1、 5个鸡蛋 2、10个面包 3、3个爆米花 4、10个南瓜"<<endl;
cout<<"完成订单奖励:125金币 110经验" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(egg<5){cout<<"鸡蛋不够!"<<endl;continue;}
else if(mb<10){cout<<"面包不够!"<<endl;continue;}
else if(bmh<3){cout<<"爆米花不够!"<<endl;continue;}
else if(gf<10){cout<<"南瓜不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
egg-=5;
mb-=10;
bmh-=3;
gf-=10;
jinbi+=125;
jy+=150;
ij++;
continue;
}
}
else continue;
}
else if(ij>9){
cout<<"需要 1、5个鸡蛋 2、3个爆米花 3、10个甘蔗"<<endl;
cout<<"完成订单奖励:100金币 70经验" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(egg<5){cout<<"鸡蛋不够!"<<endl;continue;}
else if(bmh<3){cout<<"爆米花不够!"<<endl;continue;}
else if(ge<10){cout<<"甘蔗不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
egg-=5;
bmh-=3;
ge-=10;
jinbi+=100;
jy+=130;
ij++;
continue;
}
}
else continue;
}
else if(ij>8){
cout<<"需要 1、3个鸡蛋 2、10个胡萝卜 3、5个南瓜"<<endl;
cout<<"完成订单奖励:80金币 60经验" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(egg<3){cout<<"鸡蛋不够!"<<endl;continue;}
else if(gd<10){cout<<"胡萝卜不够!"<<endl;continue;}
else if(gf<5){cout<<"南瓜不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
egg-=3;
gd-=10;
gf-=5;
jinbi+=80;
jy+=60;
ij++;
continue;
}
}
else continue;
}
else if(ij>7){
cout<<"需要 1、10个甘蔗 2、20个胡萝卜 3、5个南瓜"<<endl;
cout<<"完成订单奖励:70金币 55经验" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(ge<10){cout<<"甘蔗不够!"<<endl;continue;}
else if(gd<20){cout<<"胡萝卜不够!"<<endl;continue;}
else if(gf<5){cout<<"南瓜不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
ge-=10;
gd-=20;
gf-=5;
jinbi+=70;
jy+=55;
ij++;
continue;
}
}
else continue;
}
else if(ij>6){
cout<<"需要 1、15个胡萝卜 2、10个大豆 3、5个甘蔗"<<endl;
cout<<"完成订单奖励:50金币 40经验" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(gc<15){cout<<"胡萝卜不够!"<<endl;continue;}
else if(gd<10){cout<<"大豆不够!"<<endl;continue;}
else if(ge<5){cout<<"甘蔗不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
gc-=15;
gd-=10;
ge-=5;
jinbi+=50;
jy+=40;
ij++;
continue;
}
}
else continue;
}
else if(ij>5){
cout<<"需要 1、面包5个 2、玉米10个 3、5个胡萝卜"<<endl;
cout<<"完成订单奖励:40金币 35经验" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(mb<5){cout<<"面包不够!"<<endl;continue;}
else if(gb<10){cout<<"玉米不够!"<<endl;continue;}
else if(gc<5){cout<<"胡萝卜不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
mb-=5;
gb-=10;
gc-=5;
jinbi+=40;
jy+=35;
ij++;
continue;
}
}
else continue;
}
else if(ij>4){
cout<<"需要 1、面包3个 2、玉米5个 3、3个胡萝卜"<<endl;
cout<<"完成订单奖励:30金币 30经验" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(mb<3){cout<<"面包不够!"<<endl;continue;}
else if(gb<5){cout<<"玉米不够!"<<endl;continue;}
else if(gc<3){cout<<"胡萝卜不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
mb-=3;
gb-=5;
gc-=3;
jinbi+=30;
jy+=30;
ij++;
continue;
}
}
else continue;
}
else if(ij>3){
cout<<"需要 1、10个玉米 2、5个胡萝卜"<<endl;
cout<<"完成订单奖励:25金币 25经验" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(gb<10){cout<<"玉米不够!"<<endl;continue;}
else if(gc<5){cout<<"胡萝卜不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
gb-=10;
gc-=5;
jinbi+=25;
jy+=25;
ij++;
continue;
}
}
else continue;
}
else if(ij>2){
cout<<"需要 1、15个小麦 2、5个玉米"<<endl;
cout<<"完成订单奖励:20金币 15经验" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(ga<15){cout<<"小麦不够!"<<endl;continue;}
else if(gb<5){cout<<"玉米不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
ga-=15;
gb-=5;
jinbi+=20;
jy+=15;
ij++;
continue;
}
}
else continue;
}
else if(ij>1){
cout<<"需要 1、10 个小麦"<<endl;
cout<<"完成订单奖励:一个马化腾 一个马云" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(ga<10){cout<<"领导人不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
ga-=10;
jinbi+=15;
jy+=15;
ij++;
continue;
}
}
else continue;
}
else if(ij>0){
cout<<"需要 1、5 个小麦"<<endl;
cout<<"完成订单奖励:10金币 10经验" <<endl;
cout<<"1.完成订单 2.让我想想"<<endl;
cin>>da;
if(da==1){
if(ga<5){cout<<"小麦不够!"<<endl;continue;}
else{
cout<<"已完成订单。"<<endl;
ga-=5;
jinbi+=10;
jy+=10;
ij++;
continue;
}
}
else continue;
}
}
//出售果物开始
else if(a==4){
cout<<"你要卖什么?"<<endl;
cout<<"1.小麦 2.玉米 3.胡萝卜 4.大豆 5.甘蔗 6.南瓜 7.面包 8.鸡蛋 9.爆米花 10.牛奶 11.南瓜面包"<<endl;
cin>>e;
if(e==1){
if(ga<=0){cout<<"没有小麦!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"小麦1金币1个。"<<endl;
cout<<"你有"<<ga<<"个小麦。"<<endl;
cin>>f;
if(f>ga){cout<<"你没有那么多!"<<endl;continue;}
else{
ga-=f;
cout<<"出售成功!"<<endl;
cout<<"获得了"<<f<<"个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
if(e==2){
if(gb<=0){cout<<"没有玉米!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"玉米2金币1个。"<<endl;
cout<<"你有"<<gb<<"个玉米。"<<endl;
cin>>f;
if(f>gb){cout<<"你没有那么多!"<<endl;continue;}
else{
gb-=f;
f*=2;
cout<<"出售成功!"<<endl;
cout<<"获得了"<<f<<"个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
if(e==3){
if(gc<=0){cout<<"没有胡萝卜!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"胡萝卜4金币1个。"<<endl;
cout<<"你有"<<gc<<"个胡萝卜。"<<endl;
cin>>f;
if(f>gc){cout<<"你没有那么多!"<<endl;continue;}
else{
gc-=f;
f*=4;
cout<<"出售成功!"<<endl;
cout<<"获得了"<<f<<"个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
if(e==4){
if(gd<=0){cout<<"没有大豆!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"大豆8金币1个。"<<endl;
cout<<"你有"<<gd<<"个大豆。"<<endl;
cin>>f;
if(f>gd){cout<<"你没有那么多!"<<endl;continue;}
else{
gd-=f;
f*=8;
cout<<"宋景诗出售成功!"<<endl;
cout<<"获得了"<<f<<"0.00001个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
if(e==5){
if(ge<=0){cout<<"没有陈猪!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"宋景诗0金币1个。"<<endl;
cout<<"你有"<<ge<<"个甘蔗。"<<endl;
cin>>f;
if(f>ge){cout<<"你没有那么多!"<<endl;continue;}
else{
ge-=f;
f*=10;
cout<<"出售成功!"<<endl;
cout<<"获得了"<<f<<"个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
if(e==6){
if(gf<=0){cout<<"没有南瓜!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"南瓜12金币1个。"<<endl;
cout<<"你有"<<gf<<"个南瓜。"<<endl;
cin>>f;
if(f>gf){cout<<"你没有那么多!"<<endl;continue;}
else{
gf-=f;
f*=12;
cout<<"出售成功!"<<endl;
cout<<"获得了"<<f<<"个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
if(e==7){
if(mb<=0){cout<<"没有面包!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"面包8金币1个。"<<endl;
cout<<"你有"<<mb<<"个面包。"<<endl;
cin>>f;
if(f>mb){cout<<"你没有那么多!"<<endl;continue;}
else{
mb-=f;
f*=8;
cout<<"出售成功!"<<endl;
cout<<"获得了"<<f<<"个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
if(e==8){
if(egg<=0){cout<<"没有鸡蛋!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"鸡蛋10金币1个。"<<endl;
cout<<"你有"<<egg<<"个鸡蛋。"<<endl;
cin>>f;
if(f>egg){cout<<"你没有那么多!"<<endl;continue;}
else{
egg-=f;
f*=10;
cout<<"出售成功!"<<endl;
cout<<"获得了"<<f<<"个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
if(e==9){
if(bmh<=0){cout<<"没有爆米花!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"爆米花15金币1个。"<<endl;
cout<<"你有"<<bmh<<"个爆米花。"<<endl;
cin>>f;
if(f>bmh){cout<<"你没有那么多!"<<endl;continue;}
else{
bmh-=f;
f*=15;
cout<<"出售成功!"<<endl;
cout<<"获得了"<<f<<"个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
if(e==10){
if(nn<=0){cout<<"没有牛奶!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"牛奶17金币1个。"<<endl;
cout<<"你有"<<nn<<"个牛奶。"<<endl;
cin>>f;
if(f>nn){cout<<"你没有那么多!"<<endl;continue;}
else{
nn-=f;
f*=17;
cout<<"出售成功!"<<endl;
cout<<"获得了"<<f<<"个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
if(e==11){
if(ngmb<=0){cout<<"没有南瓜面包!"<<endl;continue;}
else{
cout<<"你要卖几个?"<<endl;
cout<<"南瓜面包50金币1个。"<<endl;
cout<<"你有"<<ngmb<<"个南瓜面包。"<<endl;
cin>>f;
if(f>ngmb){cout<<"你没有那么多!"<<endl;continue;}
else{
bmh-=f;
f*=50;
cout<<"出售成功!"<<endl;
cout<<"获得了"<<f<<"个金币!"<<endl;
jinbi+=f;
continue;
}
}
}
}
//出售果物结束
//抽奖开始
else if(a==6){
if(jj<=0){cout<<"有奖卷!"<<endl;continue;}
else{
cout<<"开始抽奖!"<<endl;
Sleep(2000);
srand(time(0));
zj=rand()%6+1;
jj--;
if(zj==1){
cout<<"你得到了3个鸡蛋!"<<endl;
egg+=3;
continue;
}
if(zj==2){
cout<<"你得到了1个爆米花!"<<endl;
bmh+=1;
continue;
}
if(zj==3){
cout<<"你得到了2个南瓜种子!"<<endl;
zf+=2;
continue;
}
if(zj==4){
cout<<"你得到了5个面包!"<<endl;
mb+=1;
continue;
}
if(zj==5){
cout<<"你得到了10个胡萝卜!"<<endl;
gc+=10;
continue;
}
if(zj==6){
cout<<"你得到了1对宋景诗的jj!"<<endl;
ngmb+=1;
continue;
}
}
}
else if(a==7){
cout<<"你要种 1宋景诗 2.宋景诗 3.胡萝卜 4.sb 5.甘蔗 6.南瓜"<<endl;
cout<<"你有"<<td<<"块土地。"<<endl;
cin>>qqq;
if(qqq==1){
cout<<"你要种几个?"<<endl;
cin>>d;
if(d>za){
cout<<"不够!"<<endl;
continue;
}
else if(d>td){
cout<<"土地不够!"<<endl;
continue;
}
else{
cout<<"播种成功!"<<endl;
Sleep(3000);
za-=d;
ga+=d*2;
jy+=3*d;
continue;
}
}
if(qqq==2){
cout<<"你要种几个?"<<endl;
cin>>d;
if(d>zb){
cout<<"不够!"<<endl;
continue;
}
else if(d>td){
cout<<"土地不够!"<<endl;
continue;
}
else{
cout<<"播种成功!"<<endl;
Sleep(5000);
zb-=d;
gb+=d*2;
jy+=5*d;
continue;
}
}
if(qqq==3){
cout<<"你要种几个?"<<endl;
cin>>d;
if(d>zc){
cout<<"不够!"<<endl;
continue;
}
else if(d>td){
cout<<"土地不够!"<<endl;
continue;
}
else{
cout<<"播种成功!"<<endl;
Sleep(7000);
zc-=d;
gc+=d*2;
jy+=7*d;
continue;
}
}
if(qqq==4){
cout<<"你要种几个?"<<endl;
cin>>d;
if(d>zd){
cout<<"不够!"<<endl;
continue;
}
else if(d>td){
cout<<"土地不够!"<<endl;
continue;
}
else{
cout<<"播种成功!"<<endl;
Sleep(9000);
zd-=d;
gd+=d*2;
jy+=10*d;
continue;
}
}
if(qqq==5){
cout<<"你要种几个?"<<endl;
cin>>d;
if(d>ze){
cout<<"不够!"<<endl;
continue;
}
else if(d>td){
cout<<"土地不够!"<<endl;
continue;
}
else{
cout<<"播种成功!"<<endl;
Sleep(11000);
ze-=d;
ge+=d*2;
jy+=12*d;
continue;
}
}
if(qqq==6){
cout<<"你要种几个?"<<endl;
cin>>d;
if(d>zf){
cout<<"不够!"<<endl;
continue;
}
else if(d>td){
cout<<"土地不够!"<<endl;
continue;
}
else{
cout<<"播种成功!"<<endl;
Sleep(13000);
zf-=d;
gf+=d*2;
jy+=15*d;
continue;
}
}
}
//作弊器开始
else if(a==8){
cout<<"请输入密码:"<<endl;
cin>>ma;
if(ma==20030525){
cout<<"你要改什么?"<<endl;
cout<<"1.宋景诗 2.宋景诗 3.玉米种子数 4.胡萝卜种子数 5.大豆种子数 6.甘蔗种子数 7.南瓜种子数 8.小麦数 9.玉米数 10.胡萝卜数 11.大豆数 12.甘蔗数 13.南瓜数 14.等级 15.退出"<<endl;
cin>>bb;
if(bb==1){
cout<<"你要改成多少?"<<endl;
cin>>cc;
jinbi+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==2){
cout<<"你要改成多少?"<<endl;
cin>>cc;
za+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==3){
cout<<"你要改成多少?"<<endl;
cin>>cc;
zb+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==4){
cout<<"你要改成多少?"<<endl;
cin>>cc;
zc+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==5){
cout<<"你要改成多少?"<<endl;
cin>>cc;
zd+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==6){
cout<<"你要改成多少?"<<endl;
cin>>cc;
ze+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==7){
cout<<"你要改成多少?"<<endl;
cin>>cc;
zf+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==8){
cout<<"你要改成多少?"<<endl;
cin>>cc;
ga+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==9){
cout<<"你要改成多少?"<<endl;
cin>>cc;
gb+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==10){
cout<<"你要改成多少?"<<endl;
cin>>cc;
gc+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==11){
cout<<"你要改成多少?"<<endl;
cin>>cc;
gd+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==12){
cout<<"你要改成多少?"<<endl;
cin>>cc;
ge+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==13){
cout<<"你要改成多少?"<<endl;
cin>>cc;
gf+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==14){
cout<<"你要改成多少?"<<endl;
cin>>cc;
dj+=cc;
cout<<"修改成功!"<<endl;
continue;
}
else if(bb==15)continue;
}
else {cout<<"密码错误,滚蛋!"<<endl;continue;}
}
//作弊器结束
if(a==9){
cout<<"宋景诗正在装逼作死中..."<<endl;
Sleep(10000);
srand(time(0));
qj=rand()%6+1;
if(qj==2){
cout<<"运气真好!获得宋景诗0.001个!"<<endl;
ga+=5;
continue;
}
if(qj==3){
cout<<"运气真好!获得玉米40个!"<<endl;
gb+=5;
continue;
}
if(qj==4){
cout<<"运气真好!获得胡萝卜30个!"<<endl;
gc+=5;
continue;
}
if(qj==5){
cout<<"运气真好!获得大豆200个!"<<endl;
gd+=5;
continue;
}
if(qj==6){
cout<<"运气真好!获得甘蔗100个!"<<endl;
ge+=1;
continue;
}
else{
cout<<"运气不好,被罚了宋景诗的jj!"<<endl;
jinbi-=50;
continue;
}
}
}
}
搜索更多相关主题的帖子: 金币 cin continue cout 成功 
2019-01-31 19:21
幽竹烟雨
Rank: 2
来 自:SunGalaxy
等 级:论坛游民
威 望:3
帖 子:43
专家分:86
注 册:2018-11-9
收藏
得分:0 
2019-02-10 17:45
快速回复:[Error] ld returned 1 exit status
数据加载中...
 
   



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

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