Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Biller Code help

 
Post new topic   Reply to topic Printable version
 View previous topic  Moveable Tiles Post :: Post Hosting My Zone  View next topic  
Author Message
Versetti
Novice


Gender:Gender:Male
Joined: Jan 05 2004
Posts: 54
Offline

PostPosted: Tue Jan 06, 2004 8:36 pm    Post subject: Biller Code help Reply to topic Reply with quote

I got a problem in my link list let me show you the code for it:
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);
};

that is the link list part and when I try too add the void replave funcation it shows a error here is the funcation:
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;
   }
}


and the error I got was:
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(2icon_cool.gif : see declaration of 'UdataList'
Error executing cl.exe.

SSG Biller.exe - 1 error(s), 0 warning(s)


Plz help me with this I'm trying too get it working for like 5 days now.
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Tue Jan 06, 2004 10:56 pm    Post subject: Reply to topic Reply with quote

I think the problem is that 'char' by itself is a value, but 'char []' is a pointer. Your function declaration is asking for 2 values, but the implementation is asking for 2 pointers. Try replacing your declaration with "void replace12(char*,char*);" and it should work.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> General Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 24 page(s) served in previous 5 minutes.

phpBB Created this page in 0.721255 seconds : 27 queries executed (96.4%): GZIP compression disabled