繁体   English   中英

C ++程序中的错误

[英]error in c++ program

如何解决以下错误...

严重错误C1083:无法打开包含文件:'graphics.h':没有此类文件或目录

有没有替代grahics.h的文件

下面是代码:

// f.cpp:定义控制台应用程序的入口点。 //

#include "stdafx.h"


#include"graphics.h"
#include"dos.h"
#include "stdlib.h"
#include "iostream.h"
#include "time.h"
#include"conio.h"
class set
{
public:
char u;int i;int z;char l;int b;long int t;int a;int x;int c;
char k;int v;int m; char w;int h[17];char q;
ins()
{
b=0;c=0;x=0;
}
void get()
{
v=0;
if(b==0)
{
goto k1;
}
if(b==1)
{
goto kk;
}
if(b==5)
{
goto ram1;
}
k1:
textcolor(14);
cout<<"\n\n\n\n\n\n\n\t\t\t  ::Child Production Presents::";
cout<<"\n\n\t\t\t\t :: CROREPATI ::";
delay(5000);
clrscr();
cout<<"\n\n\n\n\n\n\n\t\t\t::Terms And Conditions Apply::";
delay(5000);
kk:
clrscr();
cout<<"\n\n\n\n\t\t\t     :: INSTRUCTIONS ::";
cout<<"\n\n\t\t ::Use Only Num Keys For Options( 1 2 3 4 )::";
cout<<"\n\n\t\t\t::You Have Only Two Life Lines::";
cout<<"\n\n\t\t     :: A. Fifty-Fifty   B. Audience Vote ::";
cout<<"\n\n\t\t    ::Firstly Push ' Y ' Key For Life Line::";
cout<<"\n\n\t\t\t\t  :: THEN ::";
cout<<"\n\n\t\t\t::Use Keys A OR B For Life Lines::";
cout<<"\n\n\t\t\t    ::Don't Use Other Keys::";
cout<<"\n\n\t\t     ::Crorepati Game From Child Production::";
cout<<"\n\n\n\n\n\t\t\t\t\tDeveloped By->!! KUMAR GAURAV JAIN !!";
delay(10000);
clrscr();
cout<<"\n\n\n\n\n\n\t\t\t::::::Audience Vote May Be Wrong::::::";
cout<<"\n\n\t\t\t\t::So Play Carefully::";
delay(5000);
ram1:
if(z==1)
{
goto ram;
}
else
{
clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\t         :: WAIT ::";
delay(200);
if(v>=2)
{
v=v-1;
}
else
{
v=0;
}}
ram:
{
srand((unsigned) time(&t));
a=rand() % 50;
v=v+1;
for(m=2;m<=v;m++)
{
if(h[m]==a)
goto ram1;
}
h[v]=a;
if(v==16)
{
clrscr();
delay(2000);
cout<<"\n\n\n\n\n\n\n\n\t\t\t\t::Congratulations::\n";
cout<<"\n\t\t\t ::You Are The Winner Of This Game::";
delay(5000);
show2(); 
}}
if(a==0)
{
clrscr();
show();
show1();
gotoxy(1,17);
cout<<"Where Barmuda Triangle Is Suitated ?\n";
cout<<"1.Near America\t\t";
cout<<"2.Near WestIndies\n";
cout<<"3.Near Africa\t\t";
cout<<"4.Near Australia\n";
cout<<"DO YOU WANT TO USE LIFE LINES (Y/N)::";
cin>>w;
if(c==1&&x==1){
life1();goto p1;
}
if(w=='y'||w=='Y')
{
clrscr();
cout<<"\n\n\t\t\t\tA. Fifty-Fifty  B. Audience Vote";
cout<<"\n\n\t\t\t\tPlease Enter Your Choice (A/B)::";
cin>>q;
if(q=='a'||q=='A')
{ 
c1:if(c==1&&x==1)
{life1(); goto p1;}if(x==1&&c==0)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY AUDIENCE VOTE ::";
goto c2;}
x=1;
cout<<"\t\t2.Near WestIndies";
cout<<"\n\n\t\t3.Near Africa";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
if(q=='y'||q=='Y')
{
goto c2;
}
else
{
cout<<"\n\n\t\tEnter Your Choice _____";
cin>>i;
}}
else if(q=='b'||q=='B')
{
c2:if(c==1&&x==1)
{life1();goto p1;}if(x==0&&c==1)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY FIFTY-FIFTY ::";
goto c1;}c=1;
cout<<"\n\n\t\t1.Near America     ( 24% )";
cout<<"\n\n\t\t2.Near WestIndies ( 51% )";
cout<<"\n\n\t\t3.Near Africa         ( 20% )";
cout<<"\n\n\t\t4.Near Australia     ( 10% )"<<"\n\n";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
cout<<"\n\n";
if(q=='y'||q=='Y')
{
goto c1;
}
else
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}}}
else if(w=='n'||w=='N')
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}
p1:
if(i==2)
{
cout<<endl<<"\t\tYou Are Right";
delay(3000);
clrscr();
goto ram;
}
else
{
cout<<endl<<"\t\tSorry___You Are Wrong";
delay(3000);
}
clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\tRight Answer Is:: 2.Near WestIndies";
delay(2000);
show2();
}
if(a==1)
{
clrscr();
show();
show1();
gotoxy(1,17);
cout<<"\t\t2.Dr.Rajendra Prasad";
cout<<"\n\n\t\t3.Dr.Sarvapalli Radha Krishnan ";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
if(q=='y'||q=='Y')
{
goto c86;
}
else
{
cout<<"\n\n\t\tEnter Your Choice _____";
cin>>i;
}}
else if(q=='b'||q=='B')
{
c86:if(c==1&&x==1)
{life1();goto p43;}if(x==0&&c==1)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY FIFTY-FIFTY ::";
goto c85;}c=1;
cout<<"\n\n\t\t1.Pt.Jabahar Lal Nehru         ( 12% )";
cout<<"\n\n\t\t2.Dr.Rajendra Prasad           ( 28% )";
cout<<"\n\n\t\t3.Dr.Sarvapalli Radha Krishnan ( 30% )";
cout<<"\n\n\t\t4.Dr.Bhagwan Das               ( 30% )"<<"\n\n";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
cout<<"\n\n";
if(q=='y'||q=='Y')
{
goto c85;
}
else
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}}}
else if(w=='n'||w=='N')
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}
p43:
if(i==3)
{
cout<<endl<<"\t\tYou Are Right";
delay(3000);
clrscr();
goto ram;
}
else
{
cout<<endl<<"\t\tSorry___You Are Wrong";
delay(3000);
}clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\tRight Answer Is:: 3.Dr.Sarvapalli Radha Krishnan";
delay(2000);
show2();
}
if(a==43)
{
clrscr();
show();
show1();
gotoxy(1,17);
cout<<"'SHOURYA' Award Started From_____?\n";
cout<<"1.1947\t\t\t"; 
cout<<"2.1950\n";
cout<<"3.1952\t\t\t";
cout<<"4.1955\n";
cout<<"DO YOU WANT TO USE LIFE LINES (Y/N)::";
cin>>w;
if(c==1&&x==1){
life1();goto p44;}
if(w=='y'||w=='Y')
{
clrscr();
cout<<"\n\n\t\t\t\tA. Fifty-Fifty  B. Audience Vote";
cout<<"\n\n\t\t\t\tPlease Enter Your Choice (A/B)::";
cin>>q;
if(q=='a'||q=='A')
{
c87:if(c==1&&x==1)
{life1();goto p44;}if(x==1&&c==0)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY AUDIENCE VOTE ::";
goto c88;}  x=1;
cout<<"\t\t1.1947";
cout<<"\n\n\t\t4.1955";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
if(q=='y'||q=='Y')
{
goto c88;
}
else
{
cout<<"\n\n\t\tEnter Your Choice _____";
cin>>i;
}}
else if(q=='b'||q=='B')
{
c88:if(c==1&&x==1)
{life1();goto p44;}if(x==0&&c==1)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY FIFTY-FIFTY ::";
goto c87;}c=1;
cout<<"\n\n\t\t1.1947 ( 40% )";
cout<<"\n\n\t\t2.1950 ( 31% )";
cout<<"\n\n\t\t3.1950 ( 14% )";
cout<<"\n\n\t\t4.1955 ( 15% )"<<"\n\n";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
cout<<"\n\n";
if(q=='y'||q=='Y')
{
goto c87;
}
else
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}}}
else if(w=='n'||w=='N')
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}
p44:
if(i==1)
{
cout<<endl<<"\t\tYou Are Right";
delay(3000);
clrscr();
goto ram;
}
else
{
cout<<endl<<"\t\tSorry___You Are Wrong";
delay(3000);
}
clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\tRight Answer Is:: 1.1947";
delay(2000);
show2();
}
if(a==44)
{
clrscr();
show();
show1();
gotoxy(1,17);
cout<<"How Many Awarded India Won In OLYMPIC 2004?\n";
cout<<"1.04\t\t\t";
cout<<"2.09\n";
cout<<"3.01\t\t\t";
cout<<"4.15\n";
cout<<"DO YOU WANT TO USE LIFE LINES (Y/N)::";
cin>>w;
if(c==1&&x==1){
life1();goto p45;}
if(w=='y'||w=='Y')
{
clrscr();
cout<<"\n\n\t\t\t\tA. Fifty-Fifty  B. Audience Vote";
cout<<"\n\n\t\t\t\tPlease Enter Your Choice (A/B)::";
cin>>q;
if(q=='a'||q=='A')
{
c89:if(c==1&&x==1)
{life1();goto p45;}if(x==1&&c==0)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY AUDIENCE VOTE ::";
goto c90;}   x=1;
cout<<"\t\t1.04";
cout<<"\n\n\t\t3.01";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
if(q=='y'||q=='Y')
{
goto c90;
}
else
{
cout<<"\n\n\t\tEnter Your Choice _____";
cin>>i;
}}
else if(q=='b'||q=='B')
{
c90:if(c==1&&x==1)
{life1();goto p45;}if(x==0&&c==1)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY FIFTY-FIFTY ::";
goto c89;}c=1;
cout<<"\n\n\t\t1.04 ( 40% )";
cout<<"\n\n\t\t2.09 ( 31% )";
cout<<"\n\n\t\t3.01 ( 14% )"; 
cout<<"\n\n\t\t4.15 ( 15% )"<<"\n\n";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
cout<<"\n\n";
if(q=='y'||q=='Y')
{
goto c89;
}
else
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}}}
else if(w=='n'||w=='N')
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}
p45:
if(i==3)
{
cout<<endl<<"\t\tYou Are Right";
delay(3000);
clrscr();
goto ram;
}
else
{
cout<<endl<<"\t\tSorry___You Are Wrong";
delay(3000);
}
clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\tRight Answer Is:: 3.01";
delay(2000);
show2();
}
if(a==45)
{
clrscr();
show();
show1();
gotoxy(1,17);
cout<<"Reliance Cup Is Related With______?\n";
cout<<"1.Hocky\t\t\t";
cout<<"2.Football\n";
cout<<"3.Table Tenis\t\t";
cout<<"4.Cricket\n";
cout<<"DO YOU WANT TO USE LIFE LINES (Y/N)::";
cin>>w;
if(c==1&&x==1){
life1();goto p46;}
if(w=='y'||w=='Y')
{
clrscr();
cout<<"\n\n\t\t\t\tA. Fifty-Fifty  B. Audience Vote";
cout<<"\n\n\t\t\t\tPlease Enter Your Choice (A/B)::";
cin>>q;
if(q=='a'||q=='A')
{
c91:if(c==1&&x==1)
{life1();goto p46;}if(x==1&&c==0)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY AUDIENCE VOTE ::";
goto c92;}  x=1;
cout<<"\t\t3.Table Tenis";
cout<<"\n\n\t\t4.Cricket";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
if(q=='y'||q=='Y')
{
goto c92;
}
else
{
cout<<"\n\n\t\tEnter Your Choice _____";
cin>>i;
}}
else if(q=='b'||q=='B')
{
c92:if(c==1&&x==1)
{life1();goto p46;}if(x==0&&c==1)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY FIFTY-FIFTY ::";
goto c91;}c=1;
cout<<"\n\n\t\t1.Hocky       ( 46% )";
cout<<"\n\n\t\t2.Football    ( 05% )";
cout<<"\n\n\t\t3.Table Tenis ( 04% )";
cout<<"\n\n\t\t4.Cricket     ( 45% )"<<"\n\n";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
cout<<"\n\n";
if(q=='y'||q=='Y')
{
goto c91;
}
else
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}}}
else if(w=='n'||w=='N')
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}
p46:
if(i==4)
{
cout<<endl<<"\t\tYou Are Right";
delay(3000);
clrscr();
goto ram;
}
else
{
cout<<endl<<"\t\tSorry___You Are Wrong";
delay(3000);
}
clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\tRight Answer Is:: 4.Cricket";
delay(2000);
show2();
}
if(a==46)
{
clrscr();
show();
show1();
gotoxy(1,17);
cout<<"Azra Cup Is Related With______?\n";
cout<<"1.Chess\t\t\t";
cout<<"2.Polo\n";
cout<<"3.Table Tenis\t\t";
cout<<"4.Cricket\n";
cout<<"DO YOU WANT TO USE LIFE LINES (Y/N)::";
cin>>w;
if(c==1&&x==1){
life1();goto p47;}
if(w=='y'||w=='Y')
{
clrscr();
cout<<"\n\n\t\t\t\tA. Fifty-Fifty  B. Audience Vote";
cout<<"\n\n\t\t\t\tPlease Enter Your Choice (A/B)::";
cin>>q;
if(q=='a'||q=='A')
{
c93:if(c==1&&x==1)
{life1();goto p47;}if(x==1&&c==0)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY AUDIENCE VOTE ::";
goto c94;}  x=1;
cout<<"\t\t2.Polo";
cout<<"\n\n\t\t4.Cricket";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
if(q=='y'||q=='Y')
{
goto c94;
}
else
{
cout<<"\n\n\t\tEnter Your Choice _____";
cin>>i;
}} 
else if(q=='b'||q=='B')
{
c94:if(c==1&&x==1)
{life1();goto p47;}if(x==0&&c==1)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY FIFTY-FIFTY ::";
goto c93;}c=1;
cout<<"\n\n\t\t1.Chess       ( 46% )";
cout<<"\n\n\t\t2.Polo        ( 05% )";
cout<<"\n\n\t\t3.Table Tenis ( 04% )";
cout<<"\n\n\t\t4.Cricket     ( 45% )"<<"\n\n";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
cout<<"\n\n";
if(q=='y'||q=='Y')
{
goto c93;
}
else
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}}}
else if(w=='n'||w=='N')
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}
p47:
if(i==2)
{
cout<<endl<<"\t\tYou Are Right";
delay(3000);
clrscr();
goto ram;
}
else
{
cout<<endl<<"\t\tSorry___You Are Wrong";
delay(3000);
}clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\tRight Answer Is:: 2.Polo";
delay(2000);
show2();
}
if(a==47)
{
clrscr();
show();
show1();
gotoxy(1,17);
cout<<"Who Told That 'A THING OF BEAUTY IS A JOY EVER' ?\n";
cout<<"1.John Milton\t\t\t";
cout<<"2.Lard Nelson\n";
cout<<"3.John Keets\t\t\t";
cout<<"4.Lard Milton \n";
cout<<"DO YOU WANT TO USE LIFE LINES (Y/N)::";
cin>>w;
if(c==1&&x==1){
life1();goto p48;}
if(w=='y'||w=='Y')
{
clrscr();
cout<<"\n\n\t\t\t\tA. Fifty-Fifty  B. Audience Vote";
cout<<"\n\n\t\t\t\tPlease Enter Your Choice (A/B)::";
cin>>q;
if(q=='a'||q=='A')
{
c95:if(c==1&&x==1)
{life1();goto p48;}if(x==1&&c==0)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY AUDIENCE VOTE ::";
goto c96;} x=1;
cout<<"\t\t2.Lard Nelson";
cout<<"\n\n\t\t3.John Keets";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
if(q=='y'||q=='Y')
{
goto c96;
}
else
{
cout<<"\n\n\t\tEnter Your Choice _____";
cin>>i;
}}
else if(q=='b'||q=='B')
{
c96:if(c==1&&x==1)
{life1();goto p48;}if(x==0&&c==1)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY FIFTY-FIFTY ::";
goto c95;}c=1;
cout<<"\n\n\t\t1.John Milton  ( 46% )";
cout<<"\n\n\t\t2.Lard Nelson  ( 05% )";
cout<<"\n\n\t\t3.John Keets   ( 04% )";
cout<<"\n\n\t\t4.Lard Milton  ( 45% )"<<"\n\n";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
cout<<"\n\n";
if(q=='y'||q=='Y')
{
goto c95;
}
else
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}}}
else if(w=='n'||w=='N')
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}
p48:
if(i==3)
{
cout<<endl<<"\t\tYou Are Right";
delay(3000);
clrscr();
goto ram;
}
else
{
cout<<endl<<"\t\tSorry___You Are Wrong";
delay(3000);
}clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\tRight Answer Is:: 3.John Keets";
delay(2000);
show2();
}
if(a==48)
{
clrscr();
show();
show1();
textcolor(14);
gotoxy(1,17);
cout<<"'LIGHT YEAR'Is Related With_______ ?\n";
cout<<"1.Distance\t\t\t";
cout<<"2.Speed\n";
cout<<"3.Energy\t\t\t";
cout<<"4.Light \n";
cout<<"DO YOU WANT TO USE LIFE LINES (Y/N)::";
cin>>w;
if(c==1&&x==1){
life1();goto p49;}
if(w=='y'||w=='Y')
{
clrscr();
cout<<"\n\n\t\t\t\tA. Fifty-Fifty  B. Audience Vote";
cout<<"\n\n\t\t\t\tPlease Enter Your Choice (A/B)::";
cin>>q;
if(q=='a'||q=='A')
{
c97:if(c==1&&x==1)
{life1();goto p49;}if(x==1&&c==0)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY AUDIENCE VOTE ::";
goto c98;}    x=1;
cout<<"\t\t1.Distance";
cout<<"\n\n\t\t3.Energy";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
if(q=='y'||q=='Y')
{
goto c98;
}
else
{
cout<<"\n\n\t\tEnter Your Choice _____";
cin>>i;
}}
else if(q=='b'||q=='B')
{
c98:if(c==1&&x==1)
{life1(); goto p49;}
if(x==0&&c==1)
{cout<<"\n\n\t\t\t:: YOU CAN USE ONLY FIFTY-FIFTY ::";
goto c97;}c=1;
cout<<"\n\n\t\t1.Distance   ( 46% )";
cout<<"\n\n\t\t2.Speed      ( 05% )";
cout<<"\n\n\t\t3.Energy     ( 04% )";
cout<<"\n\n\t\t4.Light      ( 45% )"<<"\n\n";
cout<<"\n\n\t\tDo You Want To Use Another Life Line (Y/N)::";
cin>>q;
cout<<"\n\n";
if(q=='y'||q=='Y')
{
goto c97;
}
else
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}}}
else if(w=='n'||w=='N')
{
cout<<"Enter Your Choice 1 2 3 4_____";
cin>>i;
}
p49:
if(i==1)
{
cout<<endl<<"\t\tYou Are Right";
delay(3000);
clrscr();
goto ram;
}
else
{
cout<<endl<<"\t\tSorry___You Are Wrong";
delay(3000);
}clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\tRight Answer Is:: 1.Distance";
delay(2000);
show2();
}}
show()
{
cout<<"1,000"<<endl;
cout<<"2,000"<<endl;
cout<<"3,000"<<endl;
cout<<"5,000"<<endl;
cout<<"10,000"<<endl;
cout<<"20,000"<<endl;
cout<<"40,000"<<endl;
cout<<"80,000"<<endl;
cout<<"1,60,000"<<endl;
cout<<"3,20,000"<<endl;
cout<<"6,40,000"<<endl;
cout<<"12,25,000"<<endl;
cout<<"25,00,000"<<endl;
cout<<"50,00,000"<<"\t\t\t\t\t\tA.Fifty-Fifty"<<endl;
cout<<"1,00,00,000"<<"\t\t\t\t\t\tB.Audience Vote"<<endl;
gotoxy(56,1);
cout<<"QUESTION NUMBER::"<<v<<endl;
}
show1()
{
if(v==1)
{
gotoxy(56,3);
cout<<"QUESTION FOR::1,000";
}
if(v==2)
{
gotoxy(56,3);
cout<<"QUESTION FOR::2,000";
}
if(v==3)
{
gotoxy(56,3);
cout<<"QUESTION FOR::3,000";
}
if(v==4)
{
gotoxy(56,3);
cout<<"QUESTION FOR::5,000";
}
if(v==5)
{
gotoxy(56,3);
cout<<"QUESTION FOR::10,000";
}
if(v==6)
{
gotoxy(56,3);
cout<<"QUESTION FOR::20,000";
}
if(v==7)
{
gotoxy(56,3);
cout<<"QUESTION FOR::40,000";
}
if(v==8)
{
gotoxy(56,3);
cout<<"QUESTION FOR::80,000";
}
if(v==9)
{
gotoxy(56,3);
cout<<"QUESTION FOR::1,60,000";
}
if(v==10)
{
gotoxy(56,3);
cout<<"QUESTION FOR::3,20,000";
}
if(v==11)
{
gotoxy(56,3);
cout<<"QUESTION FOR::6,40,000";
}
if(v==12)
{
gotoxy(56,3);
cout<<"QUESTION FOR::12,25,000";
}
if(v==13)
{
gotoxy(56,3);
cout<<"QUESTION FOR::25,00,000";
}
if(v==14)
{
gotoxy(56,3);
cout<<"QUESTION FOR::50,00,000";
}
if(v==15)
{
gotoxy(56,3);
cout<<"QUESTION FOR::1,00,00,000";
}
textcolor(14);
}
life1()
{
cout<<"\n\t\t:: YOU HAVE NO LIFE LINE ::";
cout<<"\n\t\t  Enter Your Choice _____";
cin>>i;
}
show2()
{
clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\tDO YOU WANT TO PLAY IT AGAIN (Y/N)::";
cin>>u;
if(u=='y'||u=='Y')
{
clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\t\t   :: OK ::";
delay(1000);
cout<<"\n\n\t\t  :: Do You Want To Know The INSTRUCTIONS (Y/N) ::";
cin>>l;
if(l=='y'||l=='Y')
{
b=1;
}
else
{
b=5;
}
v=0;
x=0;c=0;
clrscr();
get();
}
else
{
clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\t:: THANK YOU FOR PLAY IT ::";
delay(1000);
exit(0);
}}};
int main()
{
clrscr();
int gdriver=DETECT,gmode;
set s;
s.ins();
s.get();
return 0;
}

您已经清楚地告诉了我们答案:没有名为graphics.h的文件

但是,对于替代方案,您的替代方案将是SDL或SFML。

在网上搜索时,@ Sanja Melnichuk似乎是正确的。 搜索“找不到视觉cplusplus graphics.h”。 您会获得很多成功,其中很多都说:

在我看来,您的应用程序出现的问题远远超出了仅缺少头文件的范围。 您的应用程序似乎正在尝试在DOS样式的控制台上进行游标寻址。 有一些用于此类事情的库,但是您应该问自己的问题是,这种方法在这里是否还有意义。

您不能期望将在旧DOS环境中运行的代码移植到现代Windows环境中而不会遇到一些问题。

没有任何上下文,因此这是最通用的答案:

尝试查找原始开发人员打算使用的库,将其复制到您的计算机上,然后将其文件夹添加到包含查找路径。

嗨,我认为您可以在Borland C ++ 3.11中编译程序,但是在Visual Studio中没有graphics.h。您可以使用此ms文章在控制台窗口中进行绘制

我的建议是:使用C ++ Builder,并使用Form :: Canvas属性绘制所有内容。 对我来说,这是最简单的方法。 VS没有graphics.h-这是MSDOS。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM