FAR 是16位系统时候的概念了,代表远指针的意思。近指针是16位的指针,它只表示段内的偏移地址,因而只能对64k字节数据段内地址进行存取。 如 char near *p; p=(char near *)0xffff; 远指针是32位指针,它表示段地址:偏移地址,如定义远程指针p指向B500段...
分类:
其他好文 时间:
2015-02-11 09:17:17
阅读次数:
136
1、snd_pcm_open,打开句柄。2、配置参数,可能用到的接口:snd_pcm_hw_params_alloca、snd_pcm_hw_params_any、snd_pcm_hw_params_set_rate_near、snd_pcm_hw_params_set_format、snd_pcm...
分类:
其他好文 时间:
2015-02-04 18:11:18
阅读次数:
262
Description
In order to get from one of the F (1 <= F <= 5,000) grazing fields (which are numbered 1..F) to another field, Bessie and the rest of the herd are forced to cross near the Tree of Rotte...
分类:
移动开发 时间:
2015-01-29 21:12:44
阅读次数:
311
题目:题目链接
March of the Penguins
Time Limit: 8000MS
Memory Limit: 65536K
Total Submissions: 4317
Accepted: 1957
Description
Somewhere near the south pole, a...
分类:
其他好文 时间:
2015-01-28 09:59:37
阅读次数:
257
在使用navicat for mysql 10.0.10将服务器上生成的数据库备份还原到本地数据库时,出现以下问题:[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use ...
分类:
数据库 时间:
2015-01-25 13:52:26
阅读次数:
455
这几天编写了几个简单的shell程序,然后都出现了syntax error near unexpected token ‘('
的错误,然后实在是检查不出错误;后面百度了才找到的原因:
之前错误的程序片段如下:
提示的错误如下:
后面才知道原来是$ 与左括号之间多了一个空格,改正以后程序就正常运行了。
其实上面usr=$(whoami)等价于 usr=`w...
分类:
系统相关 时间:
2015-01-23 23:03:01
阅读次数:
373
这节主要来理解投影变换和视口变换的使用。
1、正射投影:glOrtho
函数原型:
void glOrtho(GLdouble left,GLdouble right,GLdouble bottom,GLdouble top, GLdouble near,GLdouble far);
//left和right:矩形视景体的左右平面,之间的距离为“宽”
//bottom和top:...
分类:
其他好文 时间:
2015-01-19 14:25:35
阅读次数:
210
1.相关背景局部访问性原则:被访问的数据以及临近的数据很有可能被再次访问到。Locality of Reference,Data that is near other data orhas recently been used is more likely to be used again.长尾原则...
分类:
系统相关 时间:
2015-01-15 23:33:57
阅读次数:
225
今天要归档日志时发现要排除当日的日志不能归档,gz -9 $filename 但发现没有--exclude 选项,故选择使用判断语句进行排除特定文件名。但使用if ..then ..fi 判断字符串是否相等时报错:syntax error near unexpected token `then'原因...
分类:
其他好文 时间:
2015-01-15 18:08:11
阅读次数:
123
本文虽然题目是这样写的,但是并不仅仅有这两种.至少我还知道另外一种,mac格式.不过本文只讨论这两种,另外一种可参考这两种做出处理.
今天看了一个脚本,完全都没有问题,但是就是运行不过去.总是提示 syntax error near unexpected token `$'\r'' 令人百思不得其解.其实看了字面的意思也能大致明白错误的原因.但是不知道解决的办法.幸好有度娘.
其实问...
分类:
其他好文 时间:
2015-01-05 00:39:48
阅读次数:
205