摘要: 1. 同样, 我们先看看这一个比简单的 结构体代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Runt... 阅读全文
posted @ 2010-11-08 13:46 贰叁事 阅读(404) 评论(0) 推荐(0)
摘要: 今天我们来学 socket 发送结构体1. 先看要发送的结构体代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSys... 阅读全文
posted @ 2010-11-08 13:45 贰叁事 阅读(311) 评论(0) 推荐(0)
摘要: 今天来写一个UPD1.服务端:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Net.Sockets;... 阅读全文
posted @ 2010-11-08 13:45 贰叁事 阅读(334) 评论(0) 推荐(0)
摘要: 现在来传一个图片看看, 改改程序, 看看服务端图片为 140K, 1.jgp1. 服务端代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1usingSystem;2usingSystem.Collections.Generic;3usingSyst... 阅读全文
posted @ 2010-11-08 13:44 贰叁事 阅读(261) 评论(0) 推荐(0)
摘要: 1. 服务端程序[代码]好完成,,服务端, 2 现在请看客户端[代码]21Console.WriteLine("开始连接服务器....");22s.Connect(ipe);2324//4.接收数据25byte[]buffer=newbyte[1024];26s.Receive(buffer,buffer.Length,SocketFlags.None);27varmsg=Encoding.Uni... 阅读全文
posted @ 2010-11-08 13:43 贰叁事 阅读(290) 评论(0) 推荐(1)
摘要: 我们对Android应用程序运行原理及布局文件可谓有了比较深刻的认识和理解,并且用“Hello World!”程序来实践证明了。在继续深入Android开发之旅之前,有必要解决前两篇中没有介绍的遗留问题:View的几种布局显示方法,以后就不会在针对布局方面做过多的介绍。View的布局显示方式有下面几种:线性布局(Linear Layout)、相对布局(Relative La... 阅读全文
posted @ 2010-11-08 13:37 贰叁事 阅读(299) 评论(0) 推荐(0)
摘要: C#代码 阅读全文
posted @ 2010-10-30 02:18 贰叁事 阅读(713) 评论(3) 推荐(0)
摘要: 代码 阅读全文
posted @ 2010-10-30 02:18 贰叁事 阅读(1623) 评论(0) 推荐(0)
摘要: 以往我们都是肯定绞尽脑汁,肯定什么循环,元素大小,什么因素都考虑进去。但是现在采用Linq可以很好的解决这个问题。找出两个或多个数组的相同项。代码相当简单:代码 阅读全文
posted @ 2010-10-29 00:13 贰叁事 阅读(1621) 评论(0) 推荐(0)
摘要: 以下代码均来自微软官网/// <summary>/// This sample uses Take to get only the first 3 elements of the array./// </summary>public void Linq1(){ int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; var fir... 阅读全文
posted @ 2010-10-29 00:12 贰叁事 阅读(1416) 评论(3) 推荐(2)