希望自己能坚持下去,坚持到自己都不认识自己。#include int
main(){printf("Hello,cnblogs! \n I can hold on! ");return 0;}
分类:
其他好文 时间:
2014-05-28 03:59:27
阅读次数:
230
在一个业务类有下列属性private SchedulerFactoryBeanscheduler;
public SchedulerFactory BeangetScheduler() { return scheduler; } public void
setS...
分类:
编程语言 时间:
2014-05-27 23:38:16
阅读次数:
1397
Document all functions, their arguments and
return values, and also any interesting or unusual algorithm or technique. Think
of the comments as hints ...
分类:
编程语言 时间:
2014-05-27 18:05:25
阅读次数:
355
Given an array of integers, find two numbers such
that they add up to a specific target number.The function twoSum should return
indices of the two nu...
分类:
其他好文 时间:
2014-05-26 19:50:39
阅读次数:
314
类似于java的toString()- (NSString *)description{ //
包含对象类型名称,以及对象的指针地址 return [NSString stringWithFormat:@" {answer: %@, title: %@,
icon: %@, option...
分类:
其他好文 时间:
2014-05-26 19:39:09
阅读次数:
301
#include "stdio.h"int ax[]
={1000,5,6,8,9,800,5,200,3,6,5,8,9};int paixu (int n, int ret){ if (n==0) return
ret>ax[0]?ret:ax[0]; int ret1= ret>ax[n]? ...
分类:
其他好文 时间:
2014-05-26 18:41:12
阅读次数:
220
征服C指针:P70#include "stdio.h"char *int_to_str(int
int_value){ static char buf[20]; sprintf(buf,"%d",int_value); return buf;}int
main(){ c...
分类:
编程语言 时间:
2014-05-26 17:07:52
阅读次数:
249
1.gcc的-g选项
如果要使用gdb进行调试,必须在编译时在gcc中加入-g选项,使用参数 -g 表示将源代码信息编译到可执行文件中。
如果不使用-g选项:
#include
int main(void)
{
int i = 1;
i = i + 1;
printf("i = %d\n",i);
return 0;
}gcc main.c
gdb a.out
(...
分类:
其他好文 时间:
2014-05-25 21:38:46
阅读次数:
238
You are given two linked lists representing two non-negative numbers. The digits are
stored in reverse order and each of their nodes contain a single digit. Add the two numbers
and return i...
分类:
其他好文 时间:
2014-05-25 21:36:52
阅读次数:
268
IOS目录中RootViewController.mm//显示竖屏- (BOOL)
shouldAutorotate { return NO;}//显示横屏- (BOOL) shouldAutorotate { return
YES;}还有一个屏目适配:AppDelegate 中:CCDire...
分类:
其他好文 时间:
2014-05-25 20:33:59
阅读次数:
205