msoftcon.h

why is my program not running


#include<iostream>
#include<conio.h>
#include "msoftcon.h/*for Graphics FunctioONs*/
using namespace std;

struct circle
{
int xco,yco; //coordinates of the center
int radius;
color fillcolor;//colour
fstyle fillstyle;//fill pattern
};
void circ_draw(circle);


int main()
{
init_graphics(); // initializes graphics system
circle c1={15,7,5,cBLUE,X_FILL}; // CREATES CIRCLES
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);
getch();
return 0;
}
void circ_draw(circle c)
{
set_color(c.fillcolor); //set colour
set_fill_style(c.fillstyle); //set fill pattern
draw_circle(c.xco,c.yco,c.radius); //draw solid circle
}
#include "msoftcon.h/*for Graphics FunctioONs*/

That line is dodgy. try this;

#include "msoftcon.h" //for Graphics FunctioONs

I haven't looked at the rest of the code, and I have no idea what msoftcon.h does...
Topic archived. No new replies allowed.