why am i having problems in using a headerfile for graphic initialization, what is an appropriate choice???
graphics
graphics
#3
Posted 10 April 2009 - 11:16 PM
#4
Posted 11 April 2009 - 03:44 AM
Syed Faraz, on 10 Apr, 2009 - 11:16 PM, said:
Unless you are prepared to provide us information we can't help you.
What compiler?
What is the exact error message.
Are you going to show us the code or what?
If you aren't going to help us help you expect very little response to your postings.
#5
Posted 12 April 2009 - 11:31 PM
janotte, on 11 Apr, 2009 - 03:44 AM, said:
Syed Faraz, on 10 Apr, 2009 - 11:16 PM, said:
Unless you are prepared to provide us information we can't help you.
What compiler?
What is the exact error message.
Are you going to show us the code or what?
If you aren't going to help us help you expect very little response to your postings.
There is a sample:
#include<constream.h>
#include<msoftcon.h>
struct circle
{
int xco, yco;
int rad;
color fillcolor;
fstyle fillstyle;
};
void circ_draw(circle c)
{
set_color(c.fillcolor);
set_fill_style(c.fillstyle);
draw_circle(c.xco, c.yco, c.rad);
}
int main()
{
init_graphics();
circle c1={15, 7, 5, cBLUE, X_FILL};
circle c2={41, 12, 7, cRED, O_FILL};
circle c3={65, 18, 4, cGREEN, MEDIUM_FILL};
circ_draw(c1);
circ_draw(c2);
circ_draw(c3);
set_cursor_pos(1, 25);
return 0;
}
my turboC++ compiler doesnt find the headerfile, using TurboC++ 3.0 by borland int.
#7
Posted 14 April 2009 - 09:19 PM
janotte, on 13 Apr, 2009 - 12:13 AM, said:
#include<constream.h>
#include<msoftcon.h>
struct circle
{
int xco, yco;
int rad;
color fillcolor;
fstyle fillstyle;
};
void circ_draw(circle c)
{
set_color(c.fillcolor);
set_fill_style(c.fillstyle);
draw_circle(c.xco, c.yco, c.rad);
}
int main()
{
init_graphics();
circle c1={15, 7, 5, cBLUE, X_FILL};
circle c2={41, 12, 7, cRED, O_FILL};
circle c3={65, 18, 4, cGREEN, MEDIUM_FILL};
circ_draw(c1);
circ_draw(c2);
circ_draw(c3);
set_cursor_pos(1, 25);
return 0;
}
sorry sir
#8
Posted 15 April 2009 - 03:18 AM
Have a read here about how to get them and use them.
http://www.tvdsb.on....s/msconsole.htm
#9
Posted 20 April 2009 - 10:49 PM
janotte, on 15 Apr, 2009 - 03:18 AM, said:
Have a read here about how to get them and use them.
http://www.tvdsb.on....s/msconsole.htm
I'll check this out;
THANKS
#10
Posted 24 April 2009 - 08:50 AM
Syed Faraz, on 20 Apr, 2009 - 10:49 PM, said:
janotte, on 15 Apr, 2009 - 03:18 AM, said:
Have a read here about how to get them and use them.
http://www.tvdsb.on....s/msconsole.htm
I'll check this out;
THANKS
That again irritates me with 'windows.h'
hoping better
#11
Posted 24 April 2009 - 11:58 AM
Syed Faraz, on 24 Apr, 2009 - 08:50 AM, said:
Syed Faraz, on 20 Apr, 2009 - 10:49 PM, said:
janotte, on 15 Apr, 2009 - 03:18 AM, said:
Have a read here about how to get them and use them.
http://www.tvdsb.on....s/msconsole.htm
I'll check this out;
THANKS
That again irritates me with 'windows.h'
hoping better
Dude if you are having same problem with this file search on internet and
modern compilers come with these files
use
check your include folder
and vc++ and other compilers also give this error because if you type
#include <windows.h>
so to clear this error
i type
#include <windows>
again if have the same problem then you need a new compiler
vc++ 2008list of free c++ compilers is here express is free

Start a new topic
Add Reply





MultiQuote

| 


