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

Thread: Set Class in C++ ??

  1. #1
    Join Date
    Apr 1999
    Posts
    4

    Set Class in C++ ??



    In Pascal (or Delphi) there is SET type, my question is there a Class in C++ that define something like set type and it's operations?

    for example :

    in Pascal you can have :

    TYPE

    Colors = (Red, White, Green, Black)

    VAR

    S, S1, S2 : SET OF Colors;

    BEGIN

    S := S2 + S1; // Union

    S := S2 - S1; // Differnece

    S := S2 * S1; // Intersection


    Please any idea's can help me ....

    Regards

    Majid



  2. #2
    Join Date
    Aug 1998
    Posts
    2

    Re: Set Class in C++ ??



    The STD defines a set template.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)