设栈的输入序列是1,2,3,4,则不可能是其出栈序列,为什么答案是4,3,1
2个回答
2015-07-07
展开全部
(SUBSTRING(NewsID,3,8))='" + today + "'");
string id = DocDs.Tables[0].Rows[0]["NewsId"].ToString();
string lastid = id.Substring(8, 3);
try
{
decimal lastidec = decimal.Parse(lastid);
lastidec += 1;
return DocNo + today + (lastidec.ToString());
}
catch (Exception)
{
throw;
}
string id = DocDs.Tables[0].Rows[0]["NewsId"].ToString();
string lastid = id.Substring(8, 3);
try
{
decimal lastidec = decimal.Parse(lastid);
lastidec += 1;
return DocNo + today + (lastidec.ToString());
}
catch (Exception)
{
throw;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询