bsp; if (i - len >= 0)
86. {
87. s = s1[i].CharToInt() + s2[i - len].CharToInt() + temp;
88. }
89. else
90. {
91. s = s1[i].CharToInt() + temp;
92. }
93. temp = 0;
94. while (s >= 10)
95. {
96. temp++;
97. s -= 10;
98. }
99. sb.Insert(0, s);
100. }
101. if (temp > 0)
102. {
103. sb.Insert(0, temp);
104. }
105. return sb.ToString();
106. }
107. /// <summary>
108. /// 字符转换int
109. /// </summary>
110. /// <param name="s"></param>
111. /// <returns></returns>
112. static int CharToInt(this char s)
113.
上一页 [1] [2] [3] [4] [5] 下一页