![]() |
| ||
| What's Wrong with my Array? I am just trying to print out my array of binary values from 0 to 15. The output I get is wrong, very very wrong. Can someone take a look at my code and enlighten me? #include <iostream> The result I get is... 0101 0101 0101 0101 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 What's going on:?: |
| ||
| Re: What's Wrong with my Array? It's because you are declaring your array like this: int binA[16][4] = { When you should only be using braces:int binA[16][4] = { |
| ||
| Re: What's Wrong with my Array? It worked! Thanks so much:!: |
| All times are GMT -4. The time now is 12:17 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC