摘要: http://blog.csdn.net/sshfl_csdn/article/details/46415551 阅读全文
posted @ 2017-02-22 08:26 微博和csdn还有你 阅读(767) 评论(0) 推荐(0) 编辑
摘要: 首先下载 CUnit: http://cunit.sourceforge.net/ INC=-I/root/local/include LIB=-L/root/local/lib all: strformat.c testcase_strformat.c gcc $^ -o test $(INC) 阅读全文
posted @ 2017-02-20 15:23 微博和csdn还有你 阅读(467) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string.h>using namespace std; void get_next(string T,int *next){ int i=1; int j=0; next[1]=0; int len = T.length(); while 阅读全文
posted @ 2016-09-25 13:59 微博和csdn还有你 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 有一个题目,有一天突然看到,题目大概的意思是,输入字符串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还有你 阅读(116) 评论(0) 推荐(0) 编辑
摘要: > 原文地址http://www.cnblogs.com/wanghao111/archive/2009/09/05/1560822.html 阅读全文
posted @ 2016-07-13 08:45 微博和csdn还有你 阅读(277) 评论(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还有你 阅读(247) 评论(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还有你 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 笔试 由于我报的岗位是 服务端 开发工程师 IOS 开发工程师 所以我的题目靠前有很多网络编程的题目 1.写出在Linux下网络开发时,用到的系统API,列出函数名称和对应参数,写出用法更好 1 getservbyport 2 getservent 2.网络socket编程中,假如服务端瞬间writ 阅读全文
posted @ 2016-06-24 18:52 微博和csdn还有你 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 参考博文 "配置环境" "新建编译系统" Mac端配置方法 "新建编译系统" Sublime Text 3 下载地址并配置好必要插件主题 "下载地址" 阅读全文
posted @ 2016-06-24 08:26 微博和csdn还有你 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 步骤:创建C文件、用Vim编写C程序、编译C程序文件、执行编译后生成的.out文件。 1、$:touch Hello.c //创建一个Hello.c文件(本目录下) 2、$:vim Hello.c //用vim编辑Hello.c文件 i //打开vim后先输入i进入编辑状态 以下为vim中输入的程序 阅读全文
posted @ 2016-06-23 16:57 微博和csdn还有你 阅读(577) 评论(0) 推荐(0) 编辑