摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int main(int argc, char** argv) 7 { 8 regex pattern("[[:digit:]]+", regex_constants::extended); 9 printf("input stri... 阅读全文
posted @ 2016-09-12 09:46 BelFuture 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 输出结果为A)3 B)5 C)0 D)都不是 答案为B,也就是输出5。 关键点在于理解setjmp以及longjmp,(http://en.wikipedia.org/wiki/Setjmp.h )第一次运行到setjmp,会设置jmp_buf,然后返回0。当调用longjmp时,会把longjmp 阅读全文
posted @ 2016-09-12 09:33 BelFuture 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 4 typedef int INT; 5 6 int main() { 7 8 INT a=10; 9 cout 2 using namespace std; 3 4 typedef int* INT; 5 6 int main() { 7 8 ... 阅读全文
posted @ 2016-09-12 08:56 BelFuture 阅读(322) 评论(0) 推荐(0) 编辑
The horizon of life is broadened chiefly by the enlargement of the heart.