|
-
can any with C++ experience help me with this simple syntax problem, I can't fig
hi I can't seem to get this program to comply, it basically try to declare an array of structure using malloc. It ran fine without the use of malloc but when I try malloc I keep getting problem with compling
========================================================
the forum poster seems to have problem displayin the codes properly and shows smilies faces. so I'll put in a link for the codes here. it's very short
http://www.geniv.com/kin/downloads/struct9a.txt
========================================================
from the "assignaddress" function. on the line that states:
{ khm[i] = (struct address *) malloc(sizeof (struct address));
on compliation I get the error message:
Error STRUCT9A.CPP 29: Cannot convert 'address *' to 'address' in function assignaddress(address *)
anyone can give me a hand with this? thanks in advance
Last edited by GenIV; 02-24-2003 at 05:54 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|