Vector Pointer in C++

#include
#include
using namespace std;
main(void){
vector *a;
a->at(0)=0;
printf("%d\n",a->at(0));

}
My toy example, it results segmentation fault.
I don't know why. Interesting problem.

评论

此博客中的热门博文

Embedded System interview Question

MicroKernel & Exokernel 操作系统未来可能的发展

中国城市房地产分析