CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: vectors

  1. #1
    Join Date
    Dec 2005
    Posts
    180

    vectors

    I have got the following in a header file for a class:

    #include <vector>
    #include <math.h>

    In the class description, I have the following protected member:

    vector<Point2D> samples;

    Point2D is defined as a class

    during compile time I get lots of errors (C2143, C4430 and C2238)

    Any ideas?

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: vectors

    Sure but since my crystal ball fails to retrieve your (obviously not C#) code you have to look it up here http://msdn.microsoft.com/en-us/libr...x43k7(v=vs.80)
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    Feb 2011
    Location
    United States
    Posts
    1,016

    Re: vectors

    [ Moved Thread from C# Programming to C++ Forum ]
    Best Regards,

    BioPhysEngr
    http://blog.biophysengr.net
    --
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

  4. #4
    Join Date
    Apr 1999
    Posts
    27,449

    Re: vectors

    Quote Originally Posted by Complete View Post
    during compile time I get lots of errors (C2143, C4430 and C2238)

    Any ideas?
    How about posting

    1) The code that doesn't compile and

    2) The actual error message. This is the Non-Visual C++ forum, and C2143, etc. means nothing here. Post the actual error messages.

    Regards,

    Paul McKenzie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured