摘要:
#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 阅读全文
摘要:
有一个题目,有一天突然看到,题目大概的意思是,输入字符串AAABBV 输出:A3B2V include include using namespace std; int main(void) { string str; cin str; int len = str.length(); int cou 阅读全文
摘要:
`本文收集了《程序员面试宝典》和《C和C++程序员面试秘籍》中的关于sizeof的题目,让大家一次性解决sizeof问题` 1.使用sizeof计算普通变量所占空间的太小 char str[] = "Hello"; char p = str; int n = 10; sizeof(str)= siz 阅读全文