|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
old style functions??
Hello every one, as I sit here waiting to give the robot some tlc I wrote a function to drive our robot based upon encoders attached to the drive wheels
I go to compile it and the compiler says that [qutoe]old style function declarations not supported[/quote] when ni go to look at where the compiler says the problem is it points to the last } of the function. I checked that all the {}'s are ending themselves. SO if any one is free at the moment could they tell me what the old style is and what I have to do to convert it over to the 'new' style thankyou in advance |
|
#2
|
|||
|
|||
|
Re: old style functions??
Why don't you post the code?
Here's an "old style" function declaration: Code:
int myFunc( param1, param2, param3)
char param1;
int param2;
short param3;
{
printf("Got %d %d %d\n", param1, param2, param3);
}
Code:
int myFunc( char param1, int param2, short param3 )
{
.....
}
Last edited by buddy.smith : 20-02-2007 at 14:25. |
|
#3
|
||||
|
||||
|
Re: old style functions??
Quote:
Code:
int myFunc( param1, param2, param3)
char param1;
int param2;
short param3;
{
printf("Got %d %d %d\n", param1, param2, param3);
}
|
|
#4
|
|||||
|
|||||
|
Re: old style functions??
http://support.microsoft.com/kb/79845 explains the difference.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Camera functions. | winners | Programming | 1 | 21-01-2006 19:42 |
| Source for old style CIM motor (fr801-001) | Rob | Motors | 9 | 09-01-2006 09:31 |
| Bringing Back the Old School...picture style | Greg Needel | Chit-Chat | 1 | 19-10-2005 13:20 |
| Auton + Functions | ten3brousone | Programming | 0 | 27-02-2005 20:11 |
| Old Delph Ide Style? | INF3RN0666 | Programming | 6 | 14-06-2003 08:56 |