arrays in classes

T

tom24_ca

Hi. I'm a newbie and need some help. I'm trying to write a program,
that will input several answers from the user into an array. I need to
use the array in a class. I'm getting the following error from the
compiler: "member from enclosing class is not a type name, static, or
enumerator"

Anyone know what I'm doing wrong?
 
H

Howard

Hi. I'm a newbie and need some help. I'm trying to write a program,
that will input several answers from the user into an array. I need to
use the array in a class. I'm getting the following error from the
compiler: "member from enclosing class is not a type name, static, or
enumerator"

Anyone know what I'm doing wrong?

Line 7 is missing a semicolon. :)

No, seriously...without the code that's generating the error, we'd just be
guessing. Copy&Paste at least that part of the code that generates the
error, and tell us which line it occurs at (not by number, but in the posted
code). If it's in implementation code for the class, then you'll also want
to post the class definition for us.

-Howard
 

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

Forum statistics

Threads
474,189
Messages
2,571,016
Members
47,616
Latest member
gijoji4272

Latest Threads

Top