• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in filling an two dimensional array please help

 
Sara Jonasn
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49858
70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic