如何获得值one
,two
和three
回? 以下方法是否正确?看起来不是。如何解码编码为一个* 100 +两个* 10 +三的值?
int EncodedValue = one*100 + two*10 + three;
// the following decryption is part of another procedure
int one = EncodedValue/100;
int two = EncodedValue/10;
int three = EncodedValue % 10;
一,二和三总是在0..9 – 2011-05-11 19:21:43
您应该编辑您的评论到问题中。 – 2011-05-11 19:30:44