有没有办法用预处理器宏创建char *数组和int数组? [英] Is there a way to create char* array and int array with a pre-processor macro?

查看:82
本文介绍了有没有办法用预处理器宏创建char *数组和int数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C ++中有没有办法用预处理器宏创建char *数组和int数组?

In C++ is there a way to create char* array and int array with a pre-processor macro?

以及如何在宏中初始化数组?

and How to initialize array in macro?

推荐答案

为什么要将预处理器用于这些任务?
Why would you want to use the preprocessor for these tasks?


这篇关于有没有办法用预处理器宏创建char *数组和int数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆