【发布时间】:2011-03-03 04:56:58
【问题描述】:
char[] charArray = startno.ToCharArray();
//using this arry
//i want to cheque this
int i=0;
count = 0;
while (chenum [i] != "0")
{
count++;
i++;
}
string s = "0";
string zero = "0";
for (i = 1; i <= count; i++)
{
s = s + zero;
}
你能帮我更正这段代码吗... 例如:(00001101) 我需要将此编号与 1 相加。 为此,我想将此值转换为 int。如果我转换为 int,则否将是(1101)+1 否将是(1102)。添加后我想要答案(00001102)。
【问题讨论】: