![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
无间的爱
这个作者很懒,什么都没留下…
展开
-
c分割字符串 存数组 不另占空间
c分割字符串 存数组 不另占空间#include <stdio.h>#include<string.h>#define ARR_MAX 16int main() { char* arr[ARR_MAX] = {0}; char str[] = "123;456;789"; char *p; char *buff; buff=str; p = strsep(&buff, ";"); int n = 0; while(p!=NULL)...原创 2020-11-14 17:29:10 · 153 阅读 · 0 评论 -
c++ 获取线程执行结果
#include <future>#include <iostream>//线程内一个特别大的数减到1bool is_prime(int x){ while (x > 1) { x--; } return true;}int test5(){ std::future<bool> f...原创 2020-02-25 15:50:53 · 1004 阅读 · 0 评论