`
文章列表
1. When install tcl get error:  /configure: 1: Syntax error: Unterminated quoted string   1) Unpack ns tar zxpfv ns-allinone-2.xx.tar.gz 2) Apply the correct patch patch -p0 < "appropriate patch file" You should find the adequate patch in this link ...
1. 无法打开https网页 如果使用代理,别忘记设置SSL proxy。 这样才能访问https网页     2. google搜索的按键无效,或有的网页登录按钮失灵(按下无反应) 可能是原始的tab控件和网页不兼容,可以尝试添加"Multiple Tab Handler"这个插件来修复。     3. 保存网页, 将firefox另存为(save as)的默认文件名改成网页标题栏    安装File Title 1.3插件,重启firefox就可以了。https://addons.mozilla.org/firefox/834/     4. 显示中文输入法 ...
Deterministic   確定性解指一个问题的100%正確的答案。   对于一个NP问题,可能你可以很快解決如果你可以接受出现一点误差,但是要得出正确的答案(確定性解)却很难。
显示行号 把linum.el放到加载路径~/.emacs.d/site-lisp/目录下(emacs 22以后的版本已经集成这个文件,不用再添加)。在.emacs文件添加 (require 'linum)(setq linum-format "%3d ") ;对所有文件生效(add-hook 'find-file-hooks (lambda () (linum-mode 1)))     对所有文件看生效的命令 (add-hook 'find-file-hooks 想运行的命令)
Emacs Mode for GDB A graphical user interface is an essential part of any modern debugger. This mode provides one, without losing the power of Emacs.   The GNU symbolic debugger, GDB, is a powerful development tool, but one drawback is it works only from the command line. GDB has some clever fe ...
reinterpret_cast,const_cast,static_cast,dynamic_cast 显式类型转换 #include<iostream.h> int main(void) { //reinterpret_cast //将一个类型指针转换为另一个类型指针,这种在转换不修改指针变量值数据存放格式 //只需在编译时重新解释指针的类型,他可以将指针转化为一个整型数但不能用于非指针的转换 double d=9.3; double* pd = &d; int* pi = reinterpret_cast<int *> (pd); ...
在Makefile中加入启用MIG的选项后,编译出现一下错误: error: 6lowpan.h: No such file or directory ... ... 找不到头文件,但是检查环境变量都没有问题。 原来在调用MIG时需要指定包含的文件, 通过使用mig tool的 -I 选项。 在Makefile中生成MIG的命令加入头文件的路径 BUILD_EXTRA_DEPS = UdpReport.py UdpReport.py:UDPReport.h      mig -I$(LOWPAN_ROOT)/tos/lib/net python -target=null -python- ...
1.代码实现 char* strcpy(char* strDest, const char* strSrc) { ASSERT(strDest != NULL && strSrc != NULL); char* strTmpD = strDest; while ((*strTmpD++ = *strSrc++) != '0') { } return strDest ; } void* memcpy(void* pDest, const void* pSrc, unsigned int size) { ASSERT(pDest != NULL & ...
先看个例子 void add_array(int* a){ a += 2; printf("ths pointer is increase %d \n",a); } //int add(int x, int y); // forward declaration using function prototype int main() { int i = 0; int* array = &i; //printf("ths sum is"); //printf("ths sum is ...
指针为C语言编程提供了强大的支持——如果你能正确而灵活地利用指针,你就可以直接切入问题的核心,或者将程序分割成一个个片断。一个很好地利用了指针的程序会非常高效、简洁和精致。     利用指针你可以将数据写入 ...
1.Emacs安装 现在较新版本的Linux(如本书中所用的Red Hat Enterprise 4 AS)的安装光盘中一般都自带有Emacs的安装包,用户可以通过安装光盘进行安装(一般在第2张光盘中)。 2.启动Emacs 安装完Emacs之后,只需在命令行键入“emacs [文件名]”(若缺省文件名,也可在emacs编辑文件后另存时指定),也可从“编程”→“emacs”打开,如3.5图中所示的就是从“编程”→“emacs”打开的Emacs欢迎界面。 图3.5  Emacs
一、sizeof的概念   sizeof是C语言的一种单目操作符,如C语言的其他操作符++、--等。它并不是函数。sizeof操作符以字节形式给出了其操作数的存储大小。操作数可以是一个表达式或括在括号内的类型名。操作数的存储大小由操 ...
A very simple test program, no locking or other precautions: /* Program name: testscreen1.c */ /* SDL screen test */ /* Always needed for SDL programs: */ # include <SDL.h> /* For (at)exit: */ # include <stdlib.h> int main() { SDL_Surface *screen; if ( SDL_Init(SDL_INI ...
There are a number of ways to kill a process if you know the name of the process. Here's a couple different ways you can accomplish this. We are going to assume that the process we are trying to kill is named irssi kill $(pgrep irssi) killall -v irssi pkill irssi kill `ps -ef | grep irssi | grep ...
首先必须关闭网卡设备,否则会报告系统忙,无法更改。 命令是: /sbin/ifconfig eth0 down or sudo ifconfig eth0 down 修改 MAC 地址,这一步较 Windows 中的修改要简单。 命令是: /sbin/ifconfig eth0 hw ether 00:AA:BB:CCDD:EE 重新启用网卡 /sbin/ifconfig eth0 up 网卡的 MAC 地址更改就完成了
Global site tag (gtag.js) - Google Analytics