在ubuntn下通过agp-get install
nginx就可以按照最新版本的nginx,很方便在ctentos和redhat下需要添加yum
仓库才能安装最新版的nginx,在/etc/yum.repos.d/目录下新建nginx.repo 文件输入以下内容就可以了:[nginx]name=n...
分类:
其他好文 时间:
2014-04-30 05:01:46
阅读次数:
477
16进制加法1 #include2 int main()3 {4 int a,b;5
while(scanf("%x %x",&a,&b)!=EOF)6 {7 printf("%d\n",a+b); 8 } 9 }
分类:
其他好文 时间:
2014-04-30 02:19:33
阅读次数:
357
copy的目的就是修改副本,修改原始对象和副本时不会产生干扰。
定义一个不可变属性A,再定义一个可变属性B。用B做添加删除等操作后再将B赋值给A时,有些人习惯用A = B;其实这样是不安全的。 假设有下面的一段代码: int
main(){ NSMutableString *strM = [...
分类:
移动开发 时间:
2014-04-30 01:58:00
阅读次数:
561
转载自:http://blog.csdn.net/onestep365/article/details/1897626#include #include
#include int main(){ char *str = (char *)malloc(100); strcpy(str, "hello"...
分类:
其他好文 时间:
2014-04-30 01:51:48
阅读次数:
427
friend numbers = 2^x + 3^y -1 1 #include 2 int
main() 3 { 4 __int64 a; 5 while(scanf("%I64d",&a)!=EOF) 6 { 7 if(!a) 8 {
9...
分类:
其他好文 时间:
2014-04-30 01:43:36
阅读次数:
322
public class Factory2 { /** * @param args 工厂模式
*/ public static void main(String[] args) { // TODO Auto-generated method stub
Ifactory ifactory =...
分类:
其他好文 时间:
2014-04-30 00:33:52
阅读次数:
504
放置方法的程序单元是类,类中提供一个或多个方法,为类执行任务。方法执行一个任务,并可返回一个结果。类的实例称为对象。给对象发送消息称为一个方法调用,告诉对象要执行一个任务。对象有属性,可以在程序中使用,这些属性在对象的类中用字段指定属性。public
class Count//每个类声明包含关键字c...
分类:
其他好文 时间:
2014-04-28 16:18:47
阅读次数:
472
12345678910111213#include void main(){char
*sa="sdhshdh";char *sb="cdehhhhsdssssd";printf("%d , %d
\n",strlen(sa),strlen(sb));if(strlen(sa)-strlen(sb)...
分类:
其他好文 时间:
2014-04-28 15:27:16
阅读次数:
473
代码: 1 /* 2 test.java 3 */ 4 package test; 5
public class test { 6 public static void main(String args[] ) 7 { 8 CPU ccp= new
CPU();...
分类:
编程语言 时间:
2014-04-28 14:04:45
阅读次数:
439