/*Moving a car*/
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
clrscr();
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\tc\\bgi");
for (int i=0;i<500;i++)
{
/***CAR BODY ******/
line(50+i,370,90+i,370);
arc(110+i,370,0,180,20);
line(130+i,370,220+i,370);
arc(240+i,370,0,180,20);
line(260+i,370,300+i,370);
line(300+i,370,300+i,350);
line(300+i,350,240+i,330);
line(240+i,330,200+i,300);
line(200+i,300,110+i,300);
line(110+i,300,80+i,330);
line(80+i,330,50+i,340);
line(50+i,340,50+i,370);
/***CAR Windows***/
line(165+i,305,165+i,330);
line(165+i,330,230+i,330);
line(230+i,330,195+i,305);
line(195+i,305,165+i,305);
line(160+i,305,160+i,330);
line(160+i,330,95+i,330);
line(95+i,330,120+i,305);
line(120+i,305,160+i,305);
/**Wheels**/
circle(110+i,370,17);
circle(240+i,370,17);
delay(10);
cleardevice();
line(0,390,639,390); //ROAD
}
getch();
}
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
clrscr();
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\tc\\bgi");
for (int i=0;i<500;i++)
{
/***CAR BODY ******/
line(50+i,370,90+i,370);
arc(110+i,370,0,180,20);
line(130+i,370,220+i,370);
arc(240+i,370,0,180,20);
line(260+i,370,300+i,370);
line(300+i,370,300+i,350);
line(300+i,350,240+i,330);
line(240+i,330,200+i,300);
line(200+i,300,110+i,300);
line(110+i,300,80+i,330);
line(80+i,330,50+i,340);
line(50+i,340,50+i,370);
/***CAR Windows***/
line(165+i,305,165+i,330);
line(165+i,330,230+i,330);
line(230+i,330,195+i,305);
line(195+i,305,165+i,305);
line(160+i,305,160+i,330);
line(160+i,330,95+i,330);
line(95+i,330,120+i,305);
line(120+i,305,160+i,305);
/**Wheels**/
circle(110+i,370,17);
circle(240+i,370,17);
delay(10);
cleardevice();
line(0,390,639,390); //ROAD
}
getch();
}
nice too meet you
ReplyDeleteSir kya mai isse mini project me de skti hu I m the student of bca 3rd sem
Deletehi
ReplyDeleteHow did you know the numbers(coordinates?) for the lines and arcs of the car
ReplyDeleteHe might have used and coordinate find in application such as AutoCAD
Deleteyes plz tell me how you do this
Deletemake a video on this
Yeah answer me please how do you. Notify the coordinates in that program please give me a reference for that i want to know thank you...😁
ReplyDeleteYeah answer me please how do you. Notify the coordinates in that program please give me a reference for that i want to know thank you...😁
ReplyDeleteits showing me some graphic error plzz help out
ReplyDeleteLink graphics library !
Delete///ANIMATION CAR(Graphics)
Delete#include
#include
int main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
for (int i=0;i<500;i++)
{
/** CAR BODY **/
line(50+i,370,90+i,370);
arc(110+i,370,0,180,20);
line(130+i,370,220+i,370);
arc(240+i,370,0,180,20);
line(260+i,370,300+i,370);
line(300+i,370,300+i,350);
line(300+i,350,240+i,330);
line(240+i,330,200+i,300);
line(200+i,300,110+i,300);
line(110+i,300,80+i,330);
line(80+i,330,50+i,340);
line(50+i,340,50+i,370);
/** CAR Windows **/
line(165+i,305,165+i,330);
line(165+i,330,230+i,330);
line(230+i,330,195+i,305);
line(195+i,305,165+i,305);
line(160+i,305,160+i,330);
line(160+i,330,95+i,330);
line(95+i,330,120+i,305);
line(120+i,305,160+i,305);
/** Wheels **/
circle(110+i,370,17);
circle(240+i,370,17);
delay(30);
cleardevice();
line(0,390,639,390); ///ROAD
}
getch();
}
///Credit goes to #TPA_ARMY & modified by me
/// ** THE END **///
Thank you
Deletecan you give me this code please "ABC" Green fields – Students’ movements & some of them are enjoying sunshine.
Deleteplz tell about coordinates
ReplyDeleteMy *.exe has stopped working, how to fix it? Please help me, thanks!
ReplyDelete///ANIMATION CAR(Graphics)
Delete#include
#include
int main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
for (int i=0;i<500;i++)
{
/** CAR BODY **/
line(50+i,370,90+i,370);
arc(110+i,370,0,180,20);
line(130+i,370,220+i,370);
arc(240+i,370,0,180,20);
line(260+i,370,300+i,370);
line(300+i,370,300+i,350);
line(300+i,350,240+i,330);
line(240+i,330,200+i,300);
line(200+i,300,110+i,300);
line(110+i,300,80+i,330);
line(80+i,330,50+i,340);
line(50+i,340,50+i,370);
/** CAR Windows **/
line(165+i,305,165+i,330);
line(165+i,330,230+i,330);
line(230+i,330,195+i,305);
line(195+i,305,165+i,305);
line(160+i,305,160+i,330);
line(160+i,330,95+i,330);
line(95+i,330,120+i,305);
line(120+i,305,160+i,305);
/** Wheels **/
circle(110+i,370,17);
circle(240+i,370,17);
delay(30);
cleardevice();
line(0,390,639,390); ///ROAD
}
getch();
}
///Credit goes to #TPA_ARMY & modified by me
/// ** THE END **///
Function'delay'should have prototype this type of error is showing hear so how to solve it please and me fast
DeleteSir kya ya hum minor project m de skta h sir mai BE cs ki student hu
ReplyDeleteHave you got output,the programming is running but the output is not displaying?In addition, error is not occurring too..
Deletesir , it shows graphics error
ReplyDelete///ANIMATION CAR(Graphics)
Delete#include
#include
int main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
for (int i=0;i<500;i++)
{
/** CAR BODY **/
line(50+i,370,90+i,370);
arc(110+i,370,0,180,20);
line(130+i,370,220+i,370);
arc(240+i,370,0,180,20);
line(260+i,370,300+i,370);
line(300+i,370,300+i,350);
line(300+i,350,240+i,330);
line(240+i,330,200+i,300);
line(200+i,300,110+i,300);
line(110+i,300,80+i,330);
line(80+i,330,50+i,340);
line(50+i,340,50+i,370);
/** CAR Windows **/
line(165+i,305,165+i,330);
line(165+i,330,230+i,330);
line(230+i,330,195+i,305);
line(195+i,305,165+i,305);
line(160+i,305,160+i,330);
line(160+i,330,95+i,330);
line(95+i,330,120+i,305);
line(120+i,305,160+i,305);
/** Wheels **/
circle(110+i,370,17);
circle(240+i,370,17);
delay(30);
cleardevice();
line(0,390,639,390); ///ROAD
}
getch();
}
///Credit goes to #TPA_ARMY & modified by me
/// ** THE END **///
good
Deletedoesn't work this code
Deleteis it working ??
Deletehow do i paste the code in?
ReplyDeletePress Ctrl key + insert key
Deleteduring compile it shows 0 errors but during run it shows linker error, what should i do now, please help me
ReplyDeleteduring compile it shows 0 errors but during run it shows linker error, what should i do now, please help me
ReplyDelete///ANIMATION CAR(Graphics)
Delete#include
#include
int main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
for (int i=0;i<500;i++)
{
/** CAR BODY **/
line(50+i,370,90+i,370);
arc(110+i,370,0,180,20);
line(130+i,370,220+i,370);
arc(240+i,370,0,180,20);
line(260+i,370,300+i,370);
line(300+i,370,300+i,350);
line(300+i,350,240+i,330);
line(240+i,330,200+i,300);
line(200+i,300,110+i,300);
line(110+i,300,80+i,330);
line(80+i,330,50+i,340);
line(50+i,340,50+i,370);
/** CAR Windows **/
line(165+i,305,165+i,330);
line(165+i,330,230+i,330);
line(230+i,330,195+i,305);
line(195+i,305,165+i,305);
line(160+i,305,160+i,330);
line(160+i,330,95+i,330);
line(95+i,330,120+i,305);
line(120+i,305,160+i,305);
/** Wheels **/
circle(110+i,370,17);
circle(240+i,370,17);
delay(30);
cleardevice();
line(0,390,639,390); ///ROAD
}
getch();
}
///Credit goes to #TPA_ARMY & modified by me
/// ** THE END **///
Car not moving
ReplyDeletenice
ReplyDeletegetch is not working output comes and goes in split seconds :-(
ReplyDeleteYess the getch is not working wjt to do
ReplyDeleteSir, it's showing 0 error then also ,,,,
ReplyDeleteThe output is not coming����
This comment has been removed by the author.
ReplyDeleteHi there is 1 error about iostream.h......How I'll correct it to run the program.
ReplyDeleteThis comment has been removed by the author.
Delete///ANIMATION CAR(Graphics)
Delete#include
#include
int main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
for (int i=0;i<500;i++)
{
/** CAR BODY **/
line(50+i,370,90+i,370);
arc(110+i,370,0,180,20);
line(130+i,370,220+i,370);
arc(240+i,370,0,180,20);
line(260+i,370,300+i,370);
line(300+i,370,300+i,350);
line(300+i,350,240+i,330);
line(240+i,330,200+i,300);
line(200+i,300,110+i,300);
line(110+i,300,80+i,330);
line(80+i,330,50+i,340);
line(50+i,340,50+i,370);
/** CAR Windows **/
line(165+i,305,165+i,330);
line(165+i,330,230+i,330);
line(230+i,330,195+i,305);
line(195+i,305,165+i,305);
line(160+i,305,160+i,330);
line(160+i,330,95+i,330);
line(95+i,330,120+i,305);
line(120+i,305,160+i,305);
/** Wheels **/
circle(110+i,370,17);
circle(240+i,370,17);
delay(30);
cleardevice();
line(0,390,639,390); ///ROAD
}
getch();
}
///Credit goes to #TPA_ARMY & modified by me
/// ** THE END **///
This comment has been removed by the author.
DeleteDear, Joshi. If you use only these(include & include) header files then you can access this animation(moving) of car. Thanks TPA ARMY.
Deletehow have you done this sir??
ReplyDeleteThis comment has been removed by the author.
ReplyDeletehttp://winbgim.codecutter.org/ link for graphics, btw thank you author for sharing your knowledge
ReplyDeleteGreat Blog.. Keep it up..
ReplyDeleteWebsite Design Company in Delhi
Web Design Company in Delhi
Why it cant work in dev c++ compiler?
ReplyDeleteBro what is that line 50+i ,370 90 370 and
ReplyDeleteArc 110,370 what is that bro
Showing error as undefined symbol
ReplyDeleteShowS error as pixel out of range
ReplyDeleteplease give me a source code in vb.net
ReplyDeleteWhy this program is not working in my pc.....in output it is mentioned that. ....BGI Error :Graphics not initialized (use 'initgraph').....
ReplyDeleteWhat is a work of this line?
ReplyDelete(&gd,&gm,"c:\\tc\\bgi");
this code is error
ReplyDeleteinclude ar pora kisu nai
The worst part of it was that the software only worked intermittently and the data was not accurate. You obviously canot confront anyone about what you have discovered if the information is not right Elia And Ponto
ReplyDeleteMy friends Please help me create a computer graphics project using a C ++ language that has two or more interfaces
ReplyDeleteGetch is not working output comes and goes in split seconds. Please help
ReplyDeleteI'm getting 0 errors but output not showing what's the problem sir....
ReplyDeleteThis does not run in my compiler
ReplyDeletePls give me answer
ReplyDeleteCau u give the code of a child which is using slide in the play ground
ReplyDeletePlease if i have a code and it doesnt want to work can you see it and fix it
ReplyDeletehi,
ReplyDeleteThank you for sharing information. This blog is Very Useful For me.
Branding And Logo Design
Nice to read your article! I am looking forward to sharing your adventures and experiences. moving company west hollywood
ReplyDeleteI love the way you write and share your niche! Very interesting and different! Keep it coming!
ReplyDeleteWebdesign
I got what you mean , thanks for posting .Woh I am happy to find this website through google. Party Bus Toronto
ReplyDeleteI read your blog frequently and I just thought I’d say keep up the amazing work! Online Quran Academy
ReplyDeletewhat source code now is easy to run ?? except the snake and dinosaur? please help me 🙇
ReplyDeleteAmazing knowledge and I like to share this kind of information with my friends and hope they like it they why I do Rancho Cucamonga To Lax Transportation
ReplyDeleteAIRPORT VIP LIMO
ReplyDeleteTORONTO TAXI AND LIMO
Toronto Airport Taxi and Limo
ReplyDeleteVan Taxi Toronto