如果在c#里面得到当前日期.pdf

时间:2022-09-09 16:47:58
【文件属性】:
文件名称:如果在c#里面得到当前日期.pdf
文件大小:48KB
文件格式:PDF
更新时间:2022-09-09 16:47:58
如果在c# //如果在c#里面得到当前日期 //Console.WriteLine(DateTime.Now); //Console.WriteLine("{0:F}",DateTime.Now); //double num = 1.234567; //Console.WriteLine(string.Format("{0:F4}", num)); //接收用户输入的一句英文,将其中的单词以反序输出。"hello c sharp"→"sharp c hello” string str = "hello c sharp e hello c sharp"; string[] desStr = str.Split(' '); for (int i = desStr.Length - 1; i >= 0; i--) { Console.WriteLine(desStr[i]); } for (int i = 0; i < str.Length;i++ ) { if (str[i] == 'e') { Console.WriteLine(i+1);

网友评论