07 2016 档案

摘要:有一个题目,有一天突然看到,题目大概的意思是,输入字符串AAABBV 输出:A3B2V include include using namespace std; int main(void) { string str; cin str; int len = str.length(); int cou 阅读全文
posted @ 2016-07-14 18:47 微博和csdn还有你 阅读(128) 评论(0) 推荐(0)
摘要:> 原文地址http://www.cnblogs.com/wanghao111/archive/2009/09/05/1560822.html 阅读全文
posted @ 2016-07-13 08:45 微博和csdn还有你 阅读(285) 评论(0) 推荐(0)
摘要:参考文章 1. 2. 什么是runtime runtime 是 OC底层的一套C语言的API(引入 ),编译器最终都会将OC代码转化为运行时代码,通过终端命令编译.m 文件:clang rewrite objc xxx.m可以看到编译后的xxx.cpp(C++文件)。 RunTime简称运行时,就是 阅读全文
posted @ 2016-07-11 14:53 微博和csdn还有你 阅读(249) 评论(0) 推荐(0)
摘要:`本文收集了《程序员面试宝典》和《C和C++程序员面试秘籍》中的关于sizeof的题目,让大家一次性解决sizeof问题` 1.使用sizeof计算普通变量所占空间的太小 char str[] = "Hello"; char p = str; int n = 10; sizeof(str)= siz 阅读全文
posted @ 2016-07-05 18:47 微博和csdn还有你 阅读(421) 评论(0) 推荐(0)