| Author |
Problem in filling an two dimensional array please help
|
Sara Jonasn
Greenhorn
Joined: Jan 10, 2013
Posts: 9
|
|
Hi all,
I want to fill a 2-D int array through another array but my code doesn't work and return all elements of array 0.why is it so this?!!! (Red Line ) please help me as soon as possible .
Many Thanks
|
 |
Joanne Neal
Rancher
Joined: Aug 05, 2005
Posts: 3011
|
|
The input variable in your method is the one you pass as a parameter, not the one declared at the top of your code. So we need to see the code that calls the intionalPermutaion method.
Also, where are tempodd and tempeven declared and initialised ?
And please UseCodeTags when you post any more code.
|
Joanne
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32599
|
|
I have added the code tags, but the combination of tabs and spaces makes the indentation inconsistent. I also deleted some excess blank lines.
And welcome to the Ranch
|
 |
 |
|
|
subject: Problem in filling an two dimensional array please help
|
|
|