setting a numeric value
Hello,
Only my 2nd attempt at programming - Please help.
The following 2 statements produce the compile error- 'Incompatible types - found int, required boolean"
statements in code:
1)if (counter = nowall)
..........
2)counter = counter - stepswest;
1) Need to capture the value of 'counter'which is incrementing in a do..whileloop.
2) Want to reset the counter by subtracting a predefined value from it.
Definition in main:
int counter, nowall, stepswest, stepssouth;
counter = 0; nowall = 0; stepswest = 7; stepssouth = 6;
Thanks so much.

