delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/11/08:34:08

From: Ofer Corshid <oferco AT cs DOT huji DOT ac DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: parameter passing
Date: Sun, 09 Nov 1997 21:04:09 -0800
Organization: The hebrew University of Jerusalem
Lines: 17
Message-ID: <346695C9.5E0F@cs.huji.ac.il>
Reply-To: oferco AT cs DOT huji DOT ac DOT il
NNTP-Posting-Host: dial-20-6.slip.huji.ac.il
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Thanks for anyone who can and will answer this:
I have a hash table template. It, of course, has a "find" 
functions, which has the following decleration:
T* find (const H& index) const
I also have a Token class which I would like to initialize
like this:
Token *t = new Token();
and then pas it to the function find. 
when I try find(t) the compiler, of course, complains about
the type mismatch, but when I try find(*t) the compiler 
gives a linking error message (see my previous previous 
message) and when I run symify it points to ths line which 
contains this operation (find(*t))!!!!

How will I use "find"?

Ofer.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019