Problem Description Give you a string, just circumgyrate. The number N means you just circumgyrate the string N times, and each time you circumgyrate the string for 45 degree anticlockwise. Input In each case there is string and a integer N. And the length of the string is always odd, so th... Read More
posted @ 2013-04-11 12:09
javawebsoa
Views(181)
Comments(0)
Diggs(0)
我开始的时候认为htons和htonl可以只用htonl代替但是后来发现这个是错误,会导致服务器端和客户端连接不上。下面就让我们看看他们:htons #include <arpa/inet.h> uint16_t htons(uint16_t hostshort); htons的功能: 将一个无符号短整型数值转换为网络字节序,即大端模式(big-endian) 参数u_short hostshort: 16位无符号整数 返回值: TCP / IP网络字节顺序. htons 是把你机器上的整数转换成“网络字节序”, 网络字节序是 big-endian,也就是整数的高位字节... Read More
posted @ 2013-04-11 12:06
javawebsoa
Views(581)
Comments(0)
Diggs(0)
一、基础知识:GL_TRIANGLE_STRIP比GL_TRIANLGES 快100% ~ 200%。建议:尽可能地使用GL_TRIANGLE_STRIP替代GL_TRIANGLES。二、使用方法:1.首先以框架入手,我们一般在Android上画一个3D的图形,需要在MainActivity的OnCreate函数中加入如下代码,用来进入我们的3D场景界面: glView = new GLSurfaceView(this); // 创建一个GLSurfaceView glView.setRenderer(new MyGLRenderer(this)); // 使用定制的... Read More
posted @ 2013-04-11 12:02
javawebsoa
Views(456)
Comments(0)
Diggs(0)
UITableView的强大更多程度上来自于可以任意自定义UITableViewCell单元格。通常,UITableView中的Cell是动态的,在使用过程中,会创建一个Cell池,根据每个cell的高度(即tableView:heightForRowAtIndexPath:返回值),以及屏幕高度计算屏幕中可显示几个cell。而进行自定义TableViewCell无非是采用代码实现或采用IB编辑nib文件来实现两种方式,本文主要收集代码的方式实现各种cell自定义。 如何动态调整Cell高度 - (UITableViewCell *)tableView:(UITableView ... Read More
posted @ 2013-04-11 11:59
javawebsoa
Views(373)
Comments(0)
Diggs(0)
Gson gson = builder.create();如果用这个创建一个gson对象,如果字符串里面包好特殊字符“=”,就会转义为\u003d Gson gson = builder.disableHtmlEscaping().create(); 如果用这个创建一个gson对象,如果字符串里面包好特殊字符“=”,就不会进行转义,显示原始字符。 Read More
posted @ 2013-04-11 11:55
javawebsoa
Views(702)
Comments(0)
Diggs(0)
Problem Description Rock, Paper, Scissors is a two player game, where each player simultaneously chooses one of the three items after counting to three. The game typically lasts a pre-determined number of rounds. The player who wins the most rounds wins the game. Given the number of rounds the playe Read More
posted @ 2013-04-11 11:52
javawebsoa
Views(217)
Comments(0)
Diggs(0)
------- <a href="http://www.itheima.com" target="blank">android培训</a>、<a href="http://www.itheima.com" target="blank">java培训</a>、期待与您交流! --------- 网络编程(URL-URLConnection) 1.类URL(java.net包) 1)类 URL 代表一个统一资源定位符,它是指向互联网“资源”的指针。资源可以是简单的文件或目 Read More
posted @ 2013-04-11 11:48
javawebsoa
Views(234)
Comments(0)
Diggs(0)
使用asp.net 开发的网页程序,使用URLRewriter.dll 实现静态化。A. 下载URLRewriter.rar,解压后放在/bin/目录下B. 将URLRewriter.rar 加入工程引用。C. 配置IIS 站点,将扩展名为html 指向处理程序aspnet_isapi.dll。 IIS 站点->属性->主目录->配置->添加 可执行文件和aspx 处理相同,都是 c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll 特别注意,一定不要选择检查文件是否存在。D. 在web.confi Read More
posted @ 2013-04-11 11:44
javawebsoa
Views(262)
Comments(0)
Diggs(0)
一、背景设计模式<style type="text/css"> div { background:#f00 url("images/heading2.jpg") no-repeat; width:250px; height:76px; }</style><h1>Background Image(背景设计模式)</h1><div></div>二、绝对定位设计模式<style type="text/css"> *.positioned { position Read More
posted @ 2013-04-11 11:41
javawebsoa
Views(227)
Comments(0)
Diggs(0)
一、实验目的对Linux内核模块进行了解。二、实验内容创建一个内核模块,在加载和卸载模块时在内核中打印相关信息。三、背景知识:一、什么是内核模块? 内核模块是Linux内核向外部提供的一个插口,其全称为动态可加载内核模块(Loadable Kernel Module,LKM),我们简称为模块。Linux内核之所以提供模块机制,是因为它本身是一个单内核(monolithickernel)。单内核的最大优点是效率高,因为所有的内容都集成在一起,但其缺点是可扩展性和可维护性相对较差,模块机制就是为了弥补这一缺陷。模块是具有独立功能的程序,它可以被单独编译,但不能独立运行。它在运行时被链接到内核作为. Read More
posted @ 2013-04-11 11:38
javawebsoa
Views(656)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号