Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top