I am a beginner in C++ and I know so far, the basics of: cout, cin,if,loops,functions, basic formatting such as cout.precision,cout.width, and i know how to use the string class.
Ever since starting C++, I have always wanted to make graphics. Just simple ones. Like making a circle, square, lines, points and stuff like that. I have searched over 50-100 sites on the web in order to find this information but i was pretty unsuccessful.
Here is one piece of code that my book says about this.
The above code, I tried to compile using DEV C++ latest compiler but i get like 6 errors. They are:Code:#include <lvp\gui_top.h> class GuiClass { public: GuiClass(); void GuiMouseClick(int x, int y); void GuiPaint(); string Title(); private: }; GuiClass::GuiClass() { } string GuiClass::Title() { return "Olympic Symbol!"; } void GuiClass::GuiMouseClick(int x, int y) { } void GuiClass::GuiPaint() { Circle(180,200,50); } #include <lvp\gui_bot.h>
-------------------------------------------------------------------------------
gui_top: No such file or directory.
syntax error before `)' token
syntax error before `::' token
In member function `void GuiClass::GuiPaint()':
`Circle' undeclared (first use this function)
gui_bot: No such file or directory.
------------------------------------------------------------------------------
So can anybody please tell me a very simpe, program that allows me to make a freakin' circle. PLEASE!