怎么让字符串输出不换行?
编写一个控制台应用程序,给字符串中的每个单词加上双引号
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string myString = "this is a test";
char[] separator ={ ' ' };
string[] myWords;
myWords= myString.Split(separator);
foreach (string word in myWords)
{
Console.WriteLine("\"{0}\"", word);
}
Console.ReadKey();
}
}
}
让它输出不换行怎么办?