|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Function returning a struct
I am having some issues with structure handling. The error I'm getting reads:
expected initializer before 'function_name' Here is some sample code for what I'm trying to do: struct my_struct{ int a; int b; }; ..... //This next line is the line in which the error occurs my_struct function_name(my_struct my_argument){ ..... } Does anyone have any ideas on what is causing this and how to fix it? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Returning... | Nate Smith | Chit-Chat | 3 | 28-07-2008 10:00 |
| Typedef Struct as function input | Mike | Programming | 13 | 01-11-2005 06:28 |
| Global Struct Arrays and Interrupts | Orborde | Programming | 5 | 18-02-2005 22:34 |
| Returning from Nationals | archiver | 1999 | 0 | 23-06-2002 22:39 |
| Returning teams..?.. | archiver | 2000 | 1 | 23-06-2002 22:09 |