I am getting the following error while building the code in VC:
error C2143: syntax error : missing ')' before '&'

on building the below code:

typedef unsigned int uint4;
void	Find(uint4& a, uint4 b, uint4 c);
void    Find(uint4& a, uint4 b, uint4 c)
{
	. . . .
}

I do not see any error in code.
Any idea as to why this error is coming up?

If your code is as posted then the only problem I can see is the extra ',' in you function prototype.

void	Find(uint4& a, uint4 b, uint4 c[B][I],[/I][/B]);

If your code is as posted then the only problem I can see is the extra ',' in you function prototype.

void	Find(uint4& a, uint4 b, uint4 c[B][I],[/I][/B]);

thanks matt for the reply
but thats a typing mistake

If your code is as posted then the only problem I can see is the extra ',' in you function prototype.

void	Find(uint4& a, uint4 b, uint4 c[B][I],[/I][/B]);

thanks matt for the reply
but thats the typing mistake here

thanks matt for the reply
but thats the typing mistake here

Compiles alright for me which means that the code is not as presented. Where is your typedef? Error indicates that the compiler cannot resolve uint4 to a type correctly. IS the compiler seeing the typedef before it sees the function prototype and definition?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.