- Joined
- Apr 1, 2008
- Messages
- 2,163
- Reaction score
- 658
- Points
- 113
Hi SolarLiner,Anyone ? Doh ... I'll pass this save/load func, not very important ...
Next step: UCGO !
it's unfortunately not clear what your method/function should do.
So it's hard to tell what's wrong with it
You can help us help you by doing one of the following steps:
- Give us a bit more of your code, so we might be able to see some obvious issues.
- Describe what the function/method should do in normal "prosa".
It's generally a good approach to first define what the function should do and then start to code it. For example:
PHP:// This method reads the three parameters x, y and z from // a scenario line that has the form " PARAM x.x y.y z.z", where x, // y and z are floats. y and z are optional. // The values are stored in members m_X, m_Y and m_Z. void Foo::myMethod (const char* theLine) { }
You can of course also just attach the file with the problem, but still the revievers (and you too) need to know what should be done.
You can have a syntactically perfectly valid method that still is semantically wrong:
PHP:
// This method should calculate the difference between two values
double diff (double a, double b) {
return -(a + b); // Sytax: OK, Semantics: wrong
}
/Kuddel