amiga.org
     
iconAll times are GMT -6. The time now is 06:12 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Amiga computer related discussion » Amiga Software Issues and Discussion » GAH!!!! Help w/passing array of structure to a function...

Amiga Software Issues and Discussion This forum exists for the discussion of the use, issues with, and fun brought about by classic and next generation Amiga software.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-11-2005, 10:02 PM   #1
TheMagicM
Forums Moderator
Points: 18,202, Level: 85 Points: 18,202, Level: 85 Points: 18,202, Level: 85
Activity: 2% Activity: 2% Activity: 2%
 
TheMagicM's Avatar
 
Join Date: Feb 2002
Location: San Antonio TEXAS!! USA!!!
Posts: 2,369
Default GAH!!!! Help w/passing array of structure to a function...

example...


struct tele2_struct{
fname[30];
lname[30];
whatever[70];
}db[750];


int search_array(struct tele2_struct, char parm_searchvar);

then in main() I have something similiar like...

found_record = search_array(db, searchvar);

I basically want to pass a array which contains various info and what they are searching for which is stored in searchvar.. but I get a error @ found_record which says...

conversion from `tele2_struct*' to non-scalar type `
tele2_struct' requested


and I'm lookin at examples here and there..but I cannot find one similiar to mine... stumped by something simple which I cannot figure out.
TheMagicM is offline   Reply With Quote
 

Bookmarks

Tags
w or passing , structure , gah , array , function

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ - convert string to array of ints motorollin CH / Science and Technology 12 09-01-2007 10:27 AM
Programmable Array Logic (PAL) mdivancic Amiga Hardware Issues and discussion 0 10-12-2005 09:27 AM
varargs compatibility probs with PPC Oses./Passing to 2nd function Jose Amiga OS -- Development 17 09-19-2005 11:22 AM
Finding the address of an array element Sidewinder Amiga OS -- Development 26 03-15-2003 09:37 PM
Need help with C++ array declarations!!!! Glaucus Amiga OS -- Development 2 11-13-2002 12:12 AM