| | |
HELP
![]() |
[QUOTE=lonely_girl;743533]yeah that mickey mouse thing didnt work out....
and my teacher didnt specify what v r to make but she did specify that v have to make some colorful graphics like that mickey mouse but it should have proper coding and also work in turbo C. this sterick idea will surely give me a "0"
and my teacher didnt specify what v r to make but she did specify that v have to make some colorful graphics like that mickey mouse but it should have proper coding and also work in turbo C. this sterick idea will surely give me a "0"
hey everyone,
thx for help that all of u did.I actually made a program using ur help and taking help from the sites u gave....
ok i have made this program, it works perfectly,
# include<stdio.h>
# include<conio.h>
# include<stdlib.h>
# include<graphics.h>
# include<alloc.h>
# include<dos.h>
void main(void)
{
int gm,gd=DETECT;
int i;
void*p;
initgraph(&gd,&gm,"c:\\tc3\\bgi");
setcolor(RED);
line(130,75,170,75);
line(130,75,125,100);
line(170,75,175,100);
rectangle(100,100,200,125);
fillellipse(175,125,10,10);
fillellipse(175,125,5,5);
fillellipse(120,125,10,10);
fillellipse(120,125,5,5);
p=malloc(imagesize(100,75,210,135));
getimage(100,75,210,135,p);
cleardevice();
i=0;
while(!kbhit()&&i<640)
{
putimage(i,240,p,XOR_PUT);
delay(8);
cleardevice();
i++;
}
closegraph();
getch();
}
its a moving car
now again i need ur help, not help but helps....
1).my car only moves forward, wat should i do if i wanna move it in reverse???
2).my car has no windows, tried alot cant figure it out...
3).and how shoul i fill colors in my car???
and also if u wanna enhance it more plzz do it...
thx again......
thx for help that all of u did.I actually made a program using ur help and taking help from the sites u gave....
ok i have made this program, it works perfectly,
# include<stdio.h>
# include<conio.h>
# include<stdlib.h>
# include<graphics.h>
# include<alloc.h>
# include<dos.h>
void main(void)
{
int gm,gd=DETECT;
int i;
void*p;
initgraph(&gd,&gm,"c:\\tc3\\bgi");
setcolor(RED);
line(130,75,170,75);
line(130,75,125,100);
line(170,75,175,100);
rectangle(100,100,200,125);
fillellipse(175,125,10,10);
fillellipse(175,125,5,5);
fillellipse(120,125,10,10);
fillellipse(120,125,5,5);
p=malloc(imagesize(100,75,210,135));
getimage(100,75,210,135,p);
cleardevice();
i=0;
while(!kbhit()&&i<640)
{
putimage(i,240,p,XOR_PUT);
delay(8);
cleardevice();
i++;
}
closegraph();
getch();
}
its a moving car
now again i need ur help, not help but helps....
1).my car only moves forward, wat should i do if i wanna move it in reverse???
2).my car has no windows, tried alot cant figure it out...
3).and how shoul i fill colors in my car???
and also if u wanna enhance it more plzz do it...
thx again......
![]() |
Other Threads in the C Forum
- Previous Thread: need help: shuffle 2-dimensional array
- Next Thread: How to draw a graphical window in c?
| Thread Tools | Search this Thread |
#include adobe api array arrays asterisks binarysearch calculate char cm copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic feet fflush fgets file fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o include incrementoperators input interest kernel kilometer linked linkedlist linux linuxsegmentationfault list lists locate logical_drives loopinsideloop. match matrix meter microsoft motherboard mqqueue mysql number odf open opensource owf pattern pdf performance pointer posix probleminc process program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling scripting segmentationfault send sequential shape socket socketprograming stack standard string systemcall turboc unix user voidmain() wab win32api windows.h






