struct ATypeDef [ 5 ] { float Name, Amount; };

J

Jeff Relf

Hi all,

In my .CPP file, I have a line like this:
typedef struct { float Name, Amount; } ATypeDef [ 5 ];

Which I later use like this: ATypeDef XXX[ 7 ];

which is like doing this:
struct { float Name, Amount; } XXX [ 7 ] [ 5 ];

I know that I can't do this:
struct ATypeDef [ 5 ] { float Name, Amount; };

Is there some way to put the " typedef " on the left ?
 
J

John Harrison

Jeff Relf said:
Hi all,

In my .CPP file, I have a line like this:
typedef struct { float Name, Amount; } ATypeDef [ 5 ];

Which I later use like this: ATypeDef XXX[ 7 ];

which is like doing this:
struct { float Name, Amount; } XXX [ 7 ] [ 5 ];

I know that I can't do this:
struct ATypeDef [ 5 ] { float Name, Amount; };

Is there some way to put the " typedef " on the left ?

No.

john
 
J

Jeff Relf

Hi John Harrison,

Re: My .CPP file and how you said I can't do something like:
struct ATypeDef [ 5 ] { float Name, Amount; };

Ok, Thanks much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top