Win32:通过宏调用不同字符串变量

mac2022-06-30  23

#define __FLAG__

#ifndef __FLAG__#define DEST str1#else#define DEST str2#endif

 const_char_p str1[3]= {  _T("1"),  _T("2"),  _T("3") }; const_char_p str2[3]= {  _T("4"),  _T("5"),  _T("6") }; const_char_p * str = DEST; const_char_p s = str[0]; const_char_p s1 = str[1]; const_char_p * str0 = DEST;

转载于:https://www.cnblogs.com/shenchao/archive/2013/06/07/3123557.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)