首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

c#怎么接受数据

2012-01-18 
c#如何接受数据C#中有没有想C一样的printf的功能,怎么样实现从外界接受数据,比如说接受4个整数?不是说cons

c#如何接受数据
C#中有没有想C一样的printf的功能,怎么样实现从外界接受数据,比如说接受4个整数?
不是说console.readline,我是想一次就接受4个整数,怎么做?
不用文本框,我在CSC底下调试......

[解决办法]
class Program
{
static void Main(string[] args)
{
string str = Console.ReadLine();
string[] arra = str.Split(new char[] { ', '});
foreach (string s in arra)
{
Console.WriteLine(s);
}
}
}

热点排行