Code: Show/Hide class boardUdata{
public: int UserID; char Name[32]; char Email[100]; char Sig[256]; char title[32]; int posts; int warnlevel; int Level; bool banned; bool limitread; boardUdata* Next; }; class UdataNode{ boardUdata *item; UdataNode *prev; UdataNode *next; }; class UdataList{ UdataNode *head; UdataNode *tail; void replace12(char,char); }; |
Code: Show/Hide void UdataList::replace12(char oItem[32],char nItem[32])
{ UdataNode *parse = head; //Move to head of node list while(parse) //While the nodes are existant. { if(parse->item->Name = oItem) //Match the node's item with the undersired item. { parse->item->Name=nItem; //Replace the item. return; //Skip out to prevent removing too many. } parse=parse->next; } } |
Quote: |
--------------------Configuration: SSG Biller - Win32 Debug--------------------
Compiling... main.cpp d:\c++ projects\ssg biller\disscussion.h(428) : error C2511: 'replace12' : overloaded member function 'void (char [],char [])' not found in 'UdataList' d:\c++ projects\ssg biller\disscussion.h(2 ![]() Error executing cl.exe. SSG Biller.exe - 1 error(s), 0 warning(s) |