摘要:
#include #include #include #include using namespace std;int main(){ //boost::interprocess::shared_memory_object类是按照单个字节的方式读写共享内存,用起来不方便 boost::i... 阅读全文
摘要:
#include #include using namespace std;int main(){ int pid = GetCurrentProcessId(); auto path = Plug::GetCurrentPath();//返回std::wstring path +... 阅读全文
摘要:
#include using namespace std;int main(){#if 1 int num = 12345; char str[25];//不要写成char*,因为没有分配空间 itoa(num, str, 10);//10进制字符串 printf("num ... 阅读全文
摘要:
#include #include struct pos2d{ int x; int y;};using namespace std;int main(){ //boost::interprocess::shared_memory_object类是按照单个字节的方式读写共享内存,用... 阅读全文