• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is wrong with my iteration code?  RSS feed

 
Aji Prasetyo
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Please notice the code below, I want to send a byte array of integer array over local network to the receiving C++ application.

Before that I want to test my int to byte converter code. But I can't get the iteration code to iterate in order to get the int value.

But when I get it manually, it works. I can display the int value by changing the above code with this:


Anybody can tell me why I can't iterate?
Please help me. Thank you very much.

The complete code I am speaking of.


 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your j loop has got i++ in it. You meant j++
 
Aji Prasetyo
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!