View Single Post
Old 03-27-2006, 06:28 PM   #7 (permalink)
Mimirswell
ex scientia lux
 
Join Date: Nov 2004
Posts: 439
I'll hijack this since the original poster hasn't responded. I'm working on creating a class and using it to produce a basic HTML link ( tag) for a web page link. I'm fairly sure I've got the class working properly but since I'm a neophyte when it comes to classes, I haven't be able to write a functioning main, anyone have an idea?

Code:
#include #include using std::cout; using std::endl; //Begin Class class CWebLink { private: char *pWebLink, *pAddress, *pDomain, *pDisplayText; public: //Constructor CWebLink(char *newAddress=NULL, char *newDomain=NULL, char *newDisplayText=NULL); //Copy CWebLink(const CWebLink&); //Deconstructor CWebLink::~CWebLink(); //Create GetLink Function const char * GetLink() const; void SetAddress(char*); void SetDomain(char*); void SetDisplayText(char*); //Overload CWebLink& operator=(const CWebLink&); }; //End Class
Mimirswell is offline   Reply With Quote

 
Uberguilds Network