If you don't see the difference, I recommend that you run a 'diff' program over the code. If you see the difference, but don't understand it, then I recommend that you ask a specific question.
I have previously recommended that you investigate scope, particularly as it relates to auto variables. One may attempt to avoid the drawbacks of automatic variables by resorting to global or static keywords, but such measures are often dangerous and ineffective.
At some point in this exercise, you are going to have to go sit behind the barn and watch the cotton grow while you reflect on the realities of the language. Take a reference book with you.
|
Team Leader
|
![]() |
| 27Apr2007,11:32 | #31 |
|
Contributor
|
|
| 4May2007,13:45 | #32 |
|
I don't like spoon feeding because i learn nothing. My program has scope problem. Please tell me exact error and the method to solve it and not just posting the code.
Thanks. |
|
Team Leader
|
![]() |
| 5May2007,06:09 | #33 |
|
Quote:
Originally Posted by Peter_APIIT |
|
Contributor
|
|
| 7May2007,10:18 | #34 |
|
I bag your pardon. Without bothering the problem this again, what wrongs with my program.
|

