2009年5月18日

linux中echo的用法

摘要: 下面主要用例子说明用法(bash环境下测试)1)echo显示字符串普通字符串可以在echo后直接输入字符串,但这样当要输出某些字符如"时会有问题(这种写法的时候"是被当作继行符处理过滤掉的,要输出一个"必须打 "",跟c语言printf输出的要求相象),所以一般最好用´string´ 或"string"的格式,这样即使是"也可以输出,方便直观。#echo hello world... 阅读全文

posted @ 2009-05-18 23:30 ATAK 阅读(1448) 评论(0) 推荐(0) 编辑

C#中的socket编程--UDP

摘要: using System;using System.Collections.Generic;using System.Text;using System.Net;using System.Net.Sockets;namespace UDPServer{ class Program { static void Main(string[] args) { int recv; byte[] data =... 阅读全文

posted @ 2009-05-18 13:18 ATAK 阅读(1396) 评论(0) 推荐(0) 编辑

导航