Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 abc1 ,abc2, abc3,abc4,..abc100, 作为结构变量名。但是不知道怎么设置?不知道。
有人可以帮帮我吗?确实谢谢。
听起来您正在寻找一个数组。
typedef struct { /* ... */ } whatever; whatever abc[100]; abc[0] = xxx; abc[3] = yyy;