[HELP] PIC18F4550 -- C Programming Problems

Status
Not open for further replies.

scdvom

Member level 1
Joined
Feb 8, 2010
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,524
Hi, i got a problem here..once i compile my code. it declare that "old style function declarations not supported". wat d probems on my code here actually. thx 4 helping.

Code:
void setMovement(a, b, c, d)
{        ****
	int a, b, c, d;
	isForward = a;
	isReverse = b;
	isLeft =c;
	isRight =d;
}        ****old style function declarations not supported
 

The argument types used to be declared in the function as you have done.
The argument types are now declared between the brackets.

Code:
void setMovement(int a, int b, int c, int d) 
  {
   isForward = a; 
   isReverse = b; 
   isLeft =c; 
   isRight = d; 
  }
 

wow..thx 4 ur helping btbass...^^
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…