c#字符串如何转行

[复制链接]
查看11 | 回复4 | 2011-3-9 08:17:39 | 显示全部楼层 |阅读模式
不明白楼主意思? 楼主指的是输出的字符串转行还是编写的时候转行1,编写的时候转行
string newLine = @"This is a sample to show when we coding how to add a
new line in the words, just append a '@' char in this head";2,输出的字符需要转行
string outputChars = "somebody save me!" + "\n" + "Let you warm hand break through me!,jus...
回复

使用道具 举报

千问 | 2011-3-9 08:17:39 | 显示全部楼层
Console.WriteLine("字符串");...
回复

使用道具 举报

千问 | 2011-3-9 08:17:39 | 显示全部楼层
建议使用Environment.NewLine。...
回复

使用道具 举报

千问 | 2011-3-9 08:17:39 | 显示全部楼层
可以使用Environment.NewLine()...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行