U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » GeoFun -- Plot Spirograph
Re: GeoFun -- Plot Spirograph [message #43749 is a reply to message #43734] Wed, 01 October 2014 23:30 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1119
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello deep,

A small note on your code, you should never use following statement in your header file:
using namespace Upp;


This is definitly bad practice and it can lead to mistakes in the future.

You can improve your code quality by simply using:
// In header file (.h):
NAMESPACE_UPP

#define IMAGECLASS GFImg
#define IMAGEFILE <GeoFun/GeoFun.iml>
#include <Draw/iml_header.h>

// ...

END_UPP_NAMESPACE

// In implementation file (.cpp)
#include "GeoFun.h"

using namespace Upp;



Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Wed, 01 October 2014 23:30]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UppCad (or UltimateCad) is borning -- Updated January 2013 -- see last post
Next Topic: Alligator - Visual Studio PDB file analyzer
Goto Forum:
  


Current Time: Wed Sep 02 05:26:03 GMT+2 2026

Total time taken to generate the page: 0.01021 seconds