怎样把宏定义拷贝到字符数组中?
...#define SAMPLE_STR helloworld
...
char arr[20];
...
用什么方法将宏SAMPLE_STR填充到arr数组中去?即 arr的内容为 "helloworld".
前提:不许定义成带引号的形式,如:
#define SAMPLE_STR "helloworld"
2012-06-28 23:27
2012-06-28 23:28
2012-06-29 09:08