Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1076
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: Tue Apr 23 08:35:21 CEST 2024

Total time taken to generate the page: 0.02025 seconds