- 博客(20)
- 资源 (1)
- 收藏
- 关注
原创 [Android] 如何查看当前分支
想要知道如何编译Android,请看http://source.android.com/source/index.html想要知道如何下载Android,请看http://source.android.com/source/downloading.html1. 如何查看本地Android代码的分支信息,以及查看更多的分支$ git --git-dir=.repo/manifests
2012-03-01 12:36:18
2571
原创 Gentoo Linux设置文本模式下的分辨率
本文仅仅记录作者本人解决问题的过程,更多详情请翻墙GoogleGentoo在VMWare上编译安装Step 1: 编译内核,安装图形驱动Device Drivers -> Connector - unified userspace kernelspace linker ---> Graphics support -> [*] Support for frame buf
2011-12-28 17:36:42
1273
原创 [Gentoo]安装运行后,/boot文件夹为什么是空的?
Gentoo安装完成后,发现/boot文件夹下面没有任何内容此问题由二个原因引起的,一是内核不支持ext2,另一是fstab配置错误 Step 1: 重新编译内核File systems ---> Second extended fs support [*] Ext2 extended attributes [*]
2011-12-28 17:17:30
1400
2
原创 VMWare安装Gentoo错误"cannot open root device sda3..."
本文仅仅记录解决问题的过程...供大家参考 问题的原因是由于缺少SCSI驱动引起的 解决方法如下:Step 1: 修改SCSI驱动类型VM->Edit Settings->SCSI controller 0->change type,设为BusLogic此项设置据说是因为2.6+的内核不再支持LSI Logic Step 2: 用LiveCD启动,并进入编译
2011-12-28 12:45:19
1077
原创 计算质数
质数是指在一个大于1的自然数中,除了1和此整数自身外,没法被其他自然数整除的数。下面的程序计算区间[a, b]之间的质数#include #include #include #include void Prime(int min, int max){ int i, j, count = 0, square, isPrime; for (i = min; i
2011-10-14 15:56:19
647
原创 VS2008下配置安装WTL开发环境
1. 首先,去http://sourceforge.net/projects/wtl/下载WTL安装包,当前最新是WTL81_9127.zip2. 解压zip文件,选择自己喜欢的目录,比如D:/WTL81_91273. 运行文件D:/WTL81_9127/AppWiz/setup90.js4. 在VS2008中添加Include files, Tools->Options-
2011-07-01 14:49:00
906
原创 C语言指针 -- 面试题
有人在群里发布了一道试题,学习一下,测试学习环境为32位机#include int main() { int a[5] = { 1, 2, 3, 4, 5 }; int *p1 = (int*)(&a + 1); int *p2 =
2011-03-30 15:52:00
1464
1
原创 XPCOM编译错误
1. LNK2019: public: wchar_t const * __thiscall nsAString::BeginReading(void)const设置VC编译选项 /Zc:wchar_t-To set this compiler option in the Visual Studio development environmentOpen the project's Property Pages dialog box. For details, see Modifying Project S
2010-10-22 18:04:00
671
原创 函数模板与名字空间, 编译错误C2440
#include namespace A{ template void foo1(T& value) { std::cout void foo1(T& value)" << std::endl; } template void foo1(T& value) { std::cout void foo1(T& value)" << std::endl
2009-12-30 10:50:00
1789
1
原创 IWebBrowser2在没有焦点时响应滚轮事件
首先, 获得IE控件窗口句柄, 父窗口调用EnumChildWindows, 回调函数代码:BOOL CALLBACK CWebDialog::EnumChildProc(HWND hwnd, LPARAM lParam){ CWebDialog* webDialog = (CWebDialog*)(lParam); return webDialog->EnumChildProc
2009-11-25 18:20:00
1682
原创 std::not2调试版本错误
#include #include #include #include templatevoid Output(_RanIt _First, _RanIt _Last){ for (_RanIt next = _First; next != _Last; ) { std::cout << *next; next++; if (next != _La
2009-10-16 17:31:00
827
原创 指针数组与数组指针
#include #include int main(){ int n = 1; // int int array[2] = { 1, 2 }; // int [2], 数组 int *p = &n; // int *, 指针 int **pp = &p; // int * *, 指针的指针 int *parray[2] = { &n,
2009-10-12 18:52:00
543
原创 Linux的栈大小
#include int count = 0;void foo(){ char buffer[0x7FFFFFFF - 255]; buffer[sizeof(buffer) - 1] = 1; count += buffer[sizeof(buffer) - 1];}int main(){ for (int i = 0; i < 1
2009-03-30 16:46:00
665
原创 成员函数指针,静态成员函数指针,友元函数指针
#include class A{public: A(int a) : m_a(a) { } static void foo(void* param) { printf("static %s/n", __func__); } void foo() { printf("%s/n", __fun
2009-03-20 15:48:00
2062
原创 rdate更新设置时间
$ cat /etc/redhat-releaseCentOS release 5.2 (Final) Step 1: su -Step 2: rdate -s time-a.nist.govStep 3: hwclock --systohc 时钟服务器可选time.windows.comtime.nist.govtime-nw.nist.govtime
2009-02-27 14:35:00
1268
原创 Grub源代码分析
GRUB简体中文化版使用方法http://sysoft.zdwx.com/grub/Grub 源代码分析http://www.linuxsir.org/bbs/showthread.php?t=170348
2006-05-09 17:26:00
3337
du meter 4.16.3102 包含破解
2011-12-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人