摘要: #include <iostream> using namespace std; int main() { int a[4] = {1,2,3,4}; cout<<"sizeof(a) is "<<sizeof(a)<<endl; cout<<"sizeof(a[0]) is "<<sizeof(a 阅读全文
posted @ 2020-02-24 16:53 Grooovvve 阅读(146) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main() { int * p; int a = 5; p = &a; cout<<"sizeof a is "<<sizeof(a)<<endl; cout<<"sizeof p is "<<sizeof( 阅读全文
posted @ 2020-02-24 16:25 Grooovvve 阅读(183) 评论(0) 推荐(0)
摘要: 一、thread 线程 c++11中thread join和detach的区别:https://blog.csdn.net/c_base_jin/article/details/79233705 c++11 使用detach()时,主线程和孤儿detach线程的同步控制:https://blog.c 阅读全文
posted @ 2020-02-24 09:16 Grooovvve 阅读(143) 评论(0) 推荐(0)