Hey i can't seem to debug this code, the compiler says syntax error before & token.... It's the first ampersand in the first function, i have underlined it.
I can't see what's wrong with this code.
There may be problems elsewhere, but i have yet to get past this first obstacle.

Here's a quick link (http://stackoverflow.com/questions/2229498/passing-by-reference-in-c) to how one passes parameters by reference in C. Take a look at the syntax of the function; that's presumably what you intend...

Dave

CodeGibbon

10-04-2011, 03:57 PM

Thanks Dave, just realised i had to use some of c++ functionality. By saving as cpp file it worked.
Cheers.