![]() |
|
#1
|
|||
|
|||
passing a structure by referenceHow do you pass a structure to a function by reference? I have no idea
CPP / C++ / C Code:
|
|||
|
#2
|
|||
|
|||
Re: passing a structure by referencefollowing is an example for passing structure with reference: CPP / C++ / C Code:
In ur code just change the parameters of the function as follows: void readData(struct table *t) if want to use array of struct. then do that.Last edited by LuciWiz : 18-Oct-2006 at 08:55.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing an object as a reference. What is wrong? | _Y_ | Java Forum | 1 | 29-Aug-2006 12:58 |
| Difficulty Passing Structure Data Elements Between Functions | jdbrine | C++ Forum | 9 | 21-May-2006 13:03 |
| G++ question... | TreyAU21 | C++ Forum | 10 | 24-Feb-2006 09:45 |
| passing pointers to structure to fns | 00rish | C Programming Language | 4 | 07-Jun-2004 09:32 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 16:13 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The