By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,148 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,148 IT Pros & Developers. It's quick & easy.

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

P: n/a
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 ?
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Jeff Relf" <Me@Privacy.NET> wrote in message
news:sm***************@x.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 ?


No.

john
Jul 22 '05 #2

P: n/a
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.
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.