Venn diagram implementation

This is a discussion on Venn diagram implementation within the C++ Programming forums, part of the General Programming Boards category; Hello... I'm looking for some source code of how to implement a venn diagram, unions, multisets and such in C++. ...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    Question Venn diagram implementation

    Hello...

    I'm looking for some source code of how to implement a venn diagram, unions, multisets and such in C++.

    Thanks,
    Pelp

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Translation: Do my homework for me! And wrap it in golden paper!

    Seriously, show some attempt yourself before asking such a question. A search on google should also give what you're asking for.
    I'm looking for some source code of how to implement a venn diagram
    Source code? What do you mean? That's something you do with good old fashioned paper and pencil, alternatively in some drawing program. Or did I miss something here?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    The Pantless Man CheesyMoo's Avatar
    Join Date
    Jan 2003
    Posts
    262
    My suggestion would have a set of 2 arrays, so like:

    Code:
    int array1[15];
    int array2[15];
    // You have two 15 value arrays
    // Then make code to compare them 'n stuff 
    for(int i = 0; i < 15; i++)
    {
    // Your code goes here
    // show an attempt!
    }
    If you ever need a hug, just ask.

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    8
    Thanks for the hints guys!!

    I'm new to the C++ language but come from a PERL background. This is not a homework assignment. At work, I was given the job to modify an exisiting C++ program of comparing different IP numbers in groups and need to show the relationships of them if any (metric reporting). I haven't program in a bit and kind of rusty and just needed a helping hand.

    On the net, I was trying to find some tutorials of how to do this but came up empty handing. Do you know of any good resources that I should check-out or books to read?

    thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. rand() implementation
    By habert79 in forum C Programming
    Replies: 4
    Last Post: 02-07-2009, 01:18 PM
  2. implementation file
    By bejiz in forum C++ Programming
    Replies: 5
    Last Post: 11-28-2005, 01:59 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. Pure virtual implementation, or not.
    By Eibro in forum C++ Programming
    Replies: 2
    Last Post: 03-19-2003, 08:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21