请解释一下下面的语句时什么意思if (StartTime.Substring(StartTime.Length - 2, 1) == "-") teststart = teststart.Insert(teststart.LastIndexOf("-") + 1, "0");

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/03 04:13:46
请解释一下下面的语句时什么意思if (StartTime.Substring(StartTime.Length - 2, 1) ==

请解释一下下面的语句时什么意思if (StartTime.Substring(StartTime.Length - 2, 1) == "-") teststart = teststart.Insert(teststart.LastIndexOf("-") + 1, "0");
请解释一下下面的语句时什么意思
if (StartTime.Substring(StartTime.Length - 2, 1) == "-")
teststart = teststart.Insert(teststart.LastIndexOf("-") + 1, "0");

请解释一下下面的语句时什么意思if (StartTime.Substring(StartTime.Length - 2, 1) == "-") teststart = teststart.Insert(teststart.LastIndexOf("-") + 1, "0");
如果StartTime的倒数第2个字符是 - 的话
在teststart中做一次插入操作,插入的内容是0,位置则是倒数第一个 - 号的前面

请解释一下下面的语句时什么意思if (StartTime.Substring(StartTime.Length - 2, 1) == -) teststart = teststart.Insert(teststart.LastIndexOf(-) + 1, 0); (使用lf语句的嵌套形式时,else语句都是与离它最近的if语句相配) 请解释一下这句话的意思 举个例子顺便 IF语句条件的判断if(!s){n++;if(n>3){s=1,n=3}else这里的if在什么条件下运行if下面语句,什么条件下运行else下语句 请详细解释一下continue语句在while do while for if语句中如何跳的,最好附上例子, 在if语句前加$表示什么意思在If语句的的开始和结束都加有$,这是什么处理方式?请各位高手给予解释,在下感激不尽. if(1) c语言中条件什么意思,是不是一定会执行下面语句 请解释一下此语句的意思Left(CStr(i * j) & Space(5),4)Left,CStr,4 C#语句几个白痴问题请帮忙解释一下下面几个句子结构所要表达的意思,1,IFillShapeElement pFillShapeEle = pElement as IFillShapeElement; //IFillShapeElement为一个接口as充当的意思是什么2,IRectangleElement pRectangle 谁能给详细的解释一下下面c#语句的意思.Application.EnableVisualStyles();Application.SetCompatibleTextRenderingDefault(false);Application.Run(new login()); 请问这个if语句什么意思?if( (key&0x1) ) 请解释一下“世外桃源”的意思! 请解释一下枭雄的意思 请帮我解释一下excel中这个语句是什么意思 =IF(MOD(6,2),1,0) 系统总线什么意思,请知道的朋友详细解释一下,谢谢! 时风的型号代表什么意思,请分别解释一下,谢谢 谁能告诉我在宏程序if语句中总有一句类似于#3=#3-0.5的语句.我想知道什么意思 1m/s²表示什么意思?请用文字详细解释一下!~~~~ 请解释一下下面网络流行语的意思:另类、菜鸟、迷你、草根、热卖