Can't find a graphical applications for Code::Blocks?

I tried to use Windown 32 GUI for graphic application and typed:

#include "ccc_win.h"

int ccc_win_main()
{
Point top_left(1, 3);
Point top_right(1, 4);
Point bottom_left(2, 3);

Line horizontal(top_left, top_right);
Line vertical (top_left, bottom_left);

Cwin << horizontal << vertical;
horizontal.move(1,0);
vertical.move(0,1);
Cwin << horizontal << vertical;

return 0;
}

but it indicates that there is no such file as "ccc_win.h"
Can anyone help me? sorry, i'm new to C++ :(
Are you learning from a book? - does this book not give any information on where this file can be downloaded??
The double quotes around ccc_win.h indicate to the compiler that it should look for this file in the relative path to the current executables directory, since there are no subfolders indicated it will look for ccc_win.h in the same directory as your executable. If you have ccc_win.h on your system then in order for this to work you need to copy it to the same folder as your executable file.

Alternativly try writing your first line like this #include <ccc_win.h> and see if that makes a difference.
Last edited on
Yea, I'm learning from a book. But the book did not give any information on where this file can be downloaded. It only gives information about how to use graphical applications.
Topic archived. No new replies allowed.