General Chat NEW! The Student Forums Chatroom > Graphics, Visual Effects and Art
Creativity =)
elemis:
--- Quote from: Rox on May 14, 2011, 01:57:15 pm ---
Yeahh- pretty good thanks :)
I think we're going to get engaged soon enough :)
She's sending her regards.
How have you been?
--- End quote ---
Ah, thats good to hear. Planning on popping the question some time later, eh ? :D
She's got a few exams to answer this time round, right ?
Crooked:
--- Quote from: Rox on May 14, 2011, 02:07:31 pm ---hahaha. Too rightttt about thatt! :/
Sometimes they're SOOO stubborn ::)
--- End quote ---
Speak fer yerself, doe. :P
Master_Key:
--- Quote from: AboD on May 14, 2011, 02:07:37 pm ---show us ur talents :)
and lemme see some C and C++ programs :)
u can post anything, not just drawings :)
--- End quote ---
As my hard disk is restricted to 36 GB And i have only 408 KB left in d drive so i cannot create new ones but i will show you old ones like calculators and others.
THIS IS FOR CIRCLE.
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
void main()
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode,midx, midy,radius = 100;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "");
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1); /* terminate with an error code */
}
midx = getmaxx() / 2;
midy = getmaxy() / 2;
setcolor(getmaxcolor());
/* draw the circle */
circle(midx, midy, radius);
getch();
}
NotAbod:
--- Quote from: Master_Key on May 14, 2011, 02:11:50 pm ---As my hard disk is restricted to 36 GB And i have only 408 KB left in d drive so i cannot create new ones but i will show you old ones like calculators and others.
THIS IS FOR CIRCLE.
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
void main()
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode,midx, midy,radius = 100;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "");
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1); /* terminate with an error code */
}
midx = getmaxx() / 2;
midy = getmaxy() / 2;
setcolor(getmaxcolor());
/* draw the circle */
circle(midx, midy, radius);
getch();
}
--- End quote ---
failed to compile it.
i usually get this error "fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory"
about the incule. i donno how to fix this error, i got the same with some other programs too.
Master_Key:
--- Quote from: AboD on May 14, 2011, 02:15:24 pm ---failed to compile it.
i usually get this error "fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory"
about the incule. i donno how to fix this error, i got the same with some other programs too.
--- End quote ---
REplace you graphics.h header file.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version