入门经典学习1字符串操作
2017-12-21 14:11
246 查看
public class BaseTest { public static void Chapter6() { Console.WriteLine("Please enter a message:"); string msg = Console.ReadLine(); Console.WriteLine("Reverse the English message and add double quote:"); string msg2 = ""; for (int i = msg.Length - 1; i >=0; i--) { msg2 += msg[i]; } msg2 = "\"" + msg2.Replace(" ", "\" \"") + "\""; Console.WriteLine(msg2); Console.ReadKey(); } }
相关文章推荐
- javascript入门经典---笔记7 字符串操作(1)
- javascript入门经典学习三(使用变量,字符串数组)(附js中文手册)
- javascript入门经典---笔记7 字符串操作(2)--正则
- Python学习---字符串操作
- OpenGL入门学习——第十课 BMP文件与像素操作
- linux shell学习(字符串操作)--01
- MYSQL入门学习之十四:游标的基本操作
- 学习C++从入门到精通的的十本最经典书籍
- shell基础学习中的字符串操作、for循环语句示例
- linux学习入门2-3——bash命令基本操作(linuxcast.net)(bash部分快捷键、uname、history、通配符、切换用户、作业管理(前台、后台运行,暂停等操作))
- ABAP学习笔记--操作字符串2
- Visual C++ 2008入门经典 第四章数组 字符串
- 韩顺平_php从入门到精通_视频教程_第14讲_盒子模型经典应用②_作业布置_学习笔记_源代码图解_PPT文档整理
- 一道微软面试时碰到的,经典的,关于字符串操作的面试题目
- 学习C++从入门到精度的的十本最经典书籍 [转贴]
- Hibernate入门学习(7)----单表操作总结
- mybatis学习-入门(4)-一个完整的web例子,通过json将字符串传递给前台,然后显示出来
- sql 入门经典(第五版) Ryan Stephens 学习笔记 (第六,七,八,九,十章,十一章,十二章)
- ASP入门学习(四)删除操作
- Sqlite学习(三) sqlite操作入门(高级语言操作)