I want program to first run and print spaces in all values of array. Then it should print the ascii characters on their mentioned positions.I am getting to errors please remove them
1. a misplaced bracket
2. a valiable defined twice (you can only define a variable once!)
3. two missing variables (assuming you are not using an old version of VC++, like VC++ 6.0)
^ \
Ö
_|_
|
/ \
If you go back and format your post using [code]// your code here! [/code] tags, and then
(a) fix your brackets (counting them is easy if you've indented consistently
(b) remove the duplicate variable
(c) add the two missing variables
Then it should "just" work!
Commenting out some of you code with /* your unwanted code */ might help. Also, it's good style for main() to return 0, even if you can get away without doing so.
@skarla,
I think all you did was put in a curly brace so that it would compile.
The point you missed is, the loop is 2nd innermost i and j loop is enclosed in the outer i,j loop which he was using it initilize the bot[][] array. in the end, you're printing out the bot array 24x79 times.