CODE: http://pastebin.com/d74a71c0d
It's telling me that I can't use those brackets in x (line 75-77). How else I am supposed to use enum correctly?
C++ enum help?
There is no such thing as x[0], x[1] or x[2] in your code. Those are instances of array notation, and x is not an array.
x can be assigned any one of those three mediaType values at a time, but you can't reference all three with subscript notation.
Even if you declared mediaType x[3], you would still have to assign a value to any of the x[]'s for it to be valid.
Hope that helps.
Reply:i think that you need to assign values to your variables also put them on a separate lines. Maybe not. check out http://msdn2.microsoft.com/en-us/library...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment