example.cs
来自「一个语言识别引擎」· CS 代码 · 共 32 行
CS
32 行
using System;
// I don't really know C#, just bluffing from Java
namespace HelloNameSpace
{
public class HelloWorld
{
static void Main(string[] args)
{
Network.init();
BufferedPortBottle p = new BufferedPortBottle();
p.open("/csharp");
int top = 100;
for (int i=1; i<top; i++) {
Bottle bottle = p.prepare();
bottle.clear();
bottle.addString("count");
bottle.addInt(i);
bottle.addString("of");
bottle.addInt(top);
Console.WriteLine("Sending " + bottle.toString());
p.write();
Time.delay(0.5);
}
p.close();
Network.fini();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?