摘要: #include #include #include #include using namespace std;int main(){ //boost::interprocess::shared_memory_object类是按照单个字节的方式读写共享内存,用起来不方便 boost::i... 阅读全文
posted @ 2014-05-27 23:51 zzyoucan 阅读(2195) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;int main(){ int pid = GetCurrentProcessId(); auto path = Plug::GetCurrentPath();//返回std::wstring path +... 阅读全文
posted @ 2014-05-27 22:49 zzyoucan 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;int main(){#if 1 int num = 12345; char str[25];//不要写成char*,因为没有分配空间 itoa(num, str, 10);//10进制字符串 printf("num ... 阅读全文
posted @ 2014-05-27 22:15 zzyoucan 阅读(229) 评论(0) 推荐(0) 编辑
摘要: #include #include struct pos2d{ int x; int y;};using namespace std;int main(){ //boost::interprocess::shared_memory_object类是按照单个字节的方式读写共享内存,用... 阅读全文
posted @ 2014-05-27 21:17 zzyoucan 阅读(869) 评论(0) 推荐(0) 编辑