码迷,mamicode.com
首页 > 其他好文
指针知识梳理5-字符串与指针,程序内存总结
一、文字常量区域 #include int main() { char *p = "hello"; int i = 0; for(i = 0;i<6;i++) { printf("%c",*(p+i)); } *p = '1'; } 大家分析验证以上代码,p 是一个指针变量,存储地址,“hello”是一个字符串占6个字节,当我们用printf的时候能够输出"hello...
分类:其他好文   时间:2014-06-22 09:32:20    阅读次数:200
hdu1114 Piggy-Bank 完全背包
完全背包...
分类:其他好文   时间:2014-06-22 09:33:15    阅读次数:269
Notes from Data Guard
There are two types of Standby databases: 1, Physical standby database block-for-block basis the physically identical with the primary database user recovery technology 2, Logical  standby databa...
分类:其他好文   时间:2014-06-22 08:35:53    阅读次数:355
cocos2d-x3.0 新的物理引擎之详解setCategoryBitmask()、setContactTestBitmask()、setCollisionBitmask()
我在编写游戏的时候遇到了这个问题,  物理引擎其他的内容还好理解,  就这三个函数就是没找到有人详细的解释一下。  我不知道这个都没弄明白,游戏是怎么做出来的。那我就不吐糟了,      下面的所有内容都是我的个人推断。不知道正不正确。    反正我目前是这么理解的。 我们先来看看这三个函数的定义: /**      * A mask that defines which cat...
分类:其他好文   时间:2014-06-22 08:01:58    阅读次数:217
hdu1715 大菲波数
大菲波数...
分类:其他好文   时间:2014-06-22 12:09:35    阅读次数:180
矩阵快速幂模板篇
矩阵快速幂...
分类:其他好文   时间:2014-06-22 07:12:52    阅读次数:203
Apache虚拟目录的配置
作为一名Android开发者,总觉得至少应该掌握一门服务器语言,最近在慢慢的学习php,理所当然的要学习Apache的使用,本篇文章主要介绍在Win7环境下,如何配置Apache的虚拟目录。 首先,找到我们Apache的配置文件,然后打开 我们很多的配置都需要在这个文件里面完成。 下面,找到我们的节点,在里面添加下面内容 Alias /qust "E:/qust" Opt...
分类:其他好文   时间:2014-06-22 06:56:39    阅读次数:232
智能关机系统
最近在网上看到了一个智能关机系统,看起来感觉功能不错,就想自己写一个,说干就干,使用如鹏网的VC6.0开发向导可以很轻松的搭建好一个界面 我的界面如下 程序模块: 控件名和控件的ID(由于表格的限制只给出了部分的控件名和控件的ID其它的请参考代码) 控件名 控件ID 当前日期(static控件) IDC_ST...
分类:其他好文   时间:2014-06-22 08:43:56    阅读次数:343
NSUserDefaults写入和读取自定义的对象
需要写入的对象必须实现NSCoding protocol Person.h #import #import "Face.h" @interface Person : NSObject @property (nonatomic, strong) NSString *personId; @property (nonatomic, strong) NSString *n...
分类:其他好文   时间:2014-06-22 08:00:31    阅读次数:216
Swift的74个标准函数
Swift中共有74个内建函数,但是在Swift官方文档(“The Swift Programming Language”)中只记录了7中。剩下的67个都没有记录。 本文将列举Swift所有的内建函数。本文中提到的所谓的内建函数是指那些在Swift中不需要导入任何模块(如Foundation等)或者引用任何类就可以使用的函数。 abs(signedNumber): 返回...
分类:其他好文   时间:2014-06-22 08:12:52    阅读次数:378
Codeforces 360C Levko and Strings dp
题目链接:点击打开链接 题意: 给定长度为n的字符串s,常数k 显然s的子串一共有 n(n-1)/2 个 要求找到一个长度为n的字符串t,使得t对应位置的k个子串字典序>s #include #include #include #include #include #include using namespace std; #define N 2505 #define mod 10...
分类:其他好文   时间:2014-06-22 09:01:38    阅读次数:367
libvrit:ERROR:internal error Unable to locate libvirtd daemon in $PATH
转载请注明出处:http://www.openext.org/2014/06/libvirt-error1在编译配置libvirt12.2时如果prefix不是usr目录,在使用libvirt创建VM则会出现ERROR:internal error Unable to locate libvirtd daemon in $PATH即便libvirtd所在目录已经加入了PATH。本人认为这是libv...
分类:其他好文   时间:2014-06-22 11:18:08    阅读次数:260
virt-install:ERROR internal error process exited while connecting to monitor
转载请注明出处:http://www.openext.org/2014/06/virt-install-erro1使用virt-install安装vm的时候出现了一下错误,解决方法如下:$sudo ./create-vm-demo.shStarting install…ERROR internal error process exited while connecting to monitor: ...
分类:其他好文   时间:2014-06-22 06:34:56    阅读次数:271
Fragment+ViewPager+TabPageIndicator使用的时候遇到的问题
Fragment+ViewPager+TabPageIndicator使用的时候遇到的问题...
分类:其他好文   时间:2014-06-22 09:00:18    阅读次数:233
STL vector的构造函数和析构函数(2)
public member function std::vector::vector C++98 C++11 default (1) explicit vector (const allocator_type& alloc = allocator_type()); fill (2) explicit vec...
分类:其他好文   时间:2014-06-22 07:02:06    阅读次数:386
GoldenGate配置(一)之单向复制配置
GoldenGate配置(一)之单向复制配置 环境: Item Source System Target System Platform Red Hat Enterprise Linux Server release 5.4 Red Hat Enterprise Linux Server re...
分类:其他好文   时间:2014-06-22 07:16:57    阅读次数:282
final修饰符的难点记录
今天看到了final字段这块,把不会的或者难点记录下来。 第一,空白final。        书上说的有点绕,说空白final更灵活。但之前又说过final变量必须进行初始化,这是什么意思呢,二者难道有冲突吗? 其实空白final的核心就是:构造器赋值。 第二,static final 同 final 的区别。         以前我提过,static字段只...
分类:其他好文   时间:2014-06-22 06:26:43    阅读次数:260
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!