SyntaxHighlighter插件测试

[php] <?php echo "hello world!"; ?> [/php] [sql]Select * from table where id =1;[/sql] [csharp] string address; int intAddress; string ipAddress; while ((address = Console.ReadLine()) != “\\0″) { //将IP地址转换为字节数组 byte[] IPArr = IPAddress.Parse(address).GetAddressBytes(); //显示出来字节数组存放的内容,结果以16进制显示 Console.WriteLine(BitConverter.ToString(IPArr, 0, IPArr.Length)); //将字节数组转换为整型 intAddress = BitConverter.ToInt32(IPArr, 0); Console.WriteLine(intAddress); } Console.ReadLine(); [/csharp]
posted @ 2012-07-16 22:52  adodo1  Views(71)  Comments(0Edit  收藏  举报