摘要:
#pragma data_seg("MyData")int g_Value; // Note that the global is not initialized.#pragma data_seg()DLL提供两个接口函数:int GetValue(){return g_Value;}void SetValue(int n){g_Value = n;} 阅读全文
摘要:
char*pStr=newchar[20]; char*pSource="ganquanfu"; strcpy(pStr,pSource); cout<<pStr<<endl;/*string name = "ganquanfu";const char *names = name.c_str();cout<<names<<endl;*/ 阅读全文