如何獲得值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