摘要: // Convert A, B, .... AAA, AAB to number 1,2, ... int StringToNumber(string s) { int r = 0 ; for (int i = 0; i < s.Length; i++) { r = r * 26 + s[i] - 'A' + 1; } return r ; } // Co... 阅读全文
posted @ 2012-11-08 11:17 vayne 阅读(183) 评论(0) 推荐(0) 编辑