문제

I want to use abc1 ,abc2, abc3,abc4,..abc100,as struct variable name. But I don't know how to set this? have no idea.

Can anybody help me out? Thanks indeed.

도움이 되었습니까?

해결책

It sounds like you're looking for an array.

typedef struct { 
/* ... */
} whatever;

whatever abc[100];

abc[0] = xxx;
abc[3] = yyy;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top