This is the basic of basics, but for some reason I keep getting the compile error
Code:error C2143: syntax error : missing ')' before '&'
All I wanted to do was change the file_read function so that it returned an number for error (or success) and stored the number of bytes read through a variable passed to it.Code:int file_read(ang_file *f, _TCHAR *buf, size_t n, size_t &n_read)
{
... function goes here ...
}
I'm new to C++ programming so if I've missed something very obvious please let me know.