plz. everyone give advice now.
void calibrateInput ( int i ) { doJob1 ( i ); doJump ( i ); doPeter ( &i ); doMary ( &i ); }
The only issue is that it seems a bit complicated if Peter and Mary has to be involved whenever an input should be calibrated.
But do you really need _everyone_ to give advice if Peter and Mary should be involved? If 500 people gives advice - would you then read all 500 answers?
everyone give advice now.
Code that uses underscores to separate words in function names and variable names is usuall easier to read than code that just relies on capitalization.
Not sure if that's what you wanted to hear, but it still is advice.
we found it!
it is not int. it is unsigned char.
no offense, but it is amazing that it took more than one person to reach this outstanding conclusion...
either way, we are happy for you!
they told me this forum was full of gurus. but you did not know what was wrong.
Sorry, but you must have forgotten to post the relevant code. There are not variable named "it", so there is no way we could know the data type for the "it" variable.
If the parameter sent to the function is int or unsigned char is irrelevant. The compiler will upgrade the unsigned in to an int.
If the doPeter() and doMary() functions takes a pointer to unsigned char instead of pointer to int, the compiler would have caught the error directly - you do use function prototypes, don't you?
Do you often request help with code sections you have forgotten to post?
You are today's Troll and I claim my £5!
well, maybe you are in need of a guru, but most certainly you are in desperate need of a...C book.
"we found it!"
"it"? It's not a singular problem. You also need to call doPaul() between do doPeter() and doMary().
www.peterpaulandmary.com/
Maybe you can give us any advice to find out, what's your problem. Then we can be gurus and help you...
LOL... sorry, I've lost my crystal ball.
The only thing I would suggest is, that the value of 'i' gets lost after each function call, so each function gets the same value of 'i'.
If this is expected - ok. If not, 'return' a value.
i = func(i);
BR, /th.
... except for peter & mary :-)