Thread: Remove Duplicate Functions

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    1

    Remove Duplicate Functions

    Hey, I am trying to remove duplicate letters from a keyword that will be used in encryption. I have no idea what I need to do to remove them. Can someone help me please?

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One solution is to start each character in a contains such as a set. You could also store the data in a vector or a list and use the unique() function to remove duplicates.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Is it legal to have functions within functions?
    By Programmer_P in forum C++ Programming
    Replies: 13
    Last Post: 05-25-2009, 11:21 PM
  2. remove duplicate words from linked list
    By rocketman03 in forum C Programming
    Replies: 8
    Last Post: 11-22-2008, 07:47 PM
  3. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 03:35 AM
  4. duplicate detection algorithm
    By Gustaff in forum C Programming
    Replies: 4
    Last Post: 01-28-2003, 12:26 PM
  5. How do I remove duplicate entries in an array?
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 06-18-2002, 09:49 AM