Compiler error?

I was tyring to compile this code but, the Header file was shown as an error. What's wrong? Is it the compiler or the header file itself?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include 'msoftcon.h'

struct circle
{
    int xCo, yCo;
    int radius;
    color fillcolor;
    fstyle fillstyle;
};
void circ_draw(circle c)
{
    set_color(c.fillcolor);
    set_fill_style(c.fillstyle);
    draw_circle(c.xCo, cyCo, c.radius);
}
int main()
{
    int_grahics();
    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(, 25);
    return 0;
}


And Oh, the compiler I use is Code::Block.
Last edited on
Use double quotes.

 
#include "msoftcon.h" 
Last edited on
I've tried, but still shows an error.
By the way, I thought that the extension '.h' is for older compilers/standards. But why use it on the newer standards?
Please post the error message here.
Perhaps you dont have the header file in the same project/folder? Not sure if that would be an issue
Mictian wrote:
I thought that the extension '.h' is for older compilers/standards. But why use it on the newer standards?

Because msoftcon.h is not part of the C++ standard. I have no idea what this header is to be honest.
Topic archived. No new replies allowed.