working with char

This is a discussion on working with char within the C++ Programming forums, part of the General Programming Boards category; I learned this in poker - If you shuffle the cards 7 times, replacing each card behind it with the ...

  1. #16
    Bioport Productions
    Join Date
    Oct 2005
    Posts
    215
    I learned this in poker - If you shuffle the cards 7 times, replacing each card behind it with the one in front of it...It is mathematically shuffled. Well that has really no use for your problem. If you don't wanna write the algorithm yourself(that's the funnest part) you can check out the next_permutation function in algorithm.h
    -"What we wish, we readily believe, and what we ourselves think, we imagine others think also."
    PHP Code:
    sadf 

  2. #17
    Registered User
    Join Date
    Sep 2005
    Posts
    57
    K i am srry i did not understand what you said. is hter tuts on alkogorithm

  3. #18
    Bioport Productions
    Join Date
    Oct 2005
    Posts
    215
    Sure, its called google.com
    -"What we wish, we readily believe, and what we ourselves think, we imagine others think also."
    PHP Code:
    sadf 

  4. #19
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,066
    I don't mean to sound rude, but could you please proof-read your posts before you read them. I'm having a huge problem trying to understand what you're asking half the time. Secondly, I think you're getting way ahead of yourself in this program. If you don't know how to create an algorithm to sorts elements in arrays then you really don't have the nessassary knowledge to create this program. Go back to the tutorials on arrays, loops, and swap functions and learn them well, then come back to this program.
    Sent from my iPadŽ

  5. #20
    Registered User
    Join Date
    Sep 2005
    Posts
    57
    Thanks for being honest, and srry that i wroght that badly lol i was in a rush. and k kool thanks.

  6. #21
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,793
    You could take the individual letters of both words and insert them into two seperate map<char,int> containers and then simply compare the two containers using ==.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 06-16-2006, 09:23 PM
  2. code condensing
    By bcianfrocca in forum C++ Programming
    Replies: 4
    Last Post: 09-07-2005, 09:22 AM
  3. Half-life SDK, where are the constants?
    By bennyandthejets in forum Game Programming
    Replies: 29
    Last Post: 08-25-2003, 11:58 AM
  4. comparing fields in a text file
    By darfader in forum C Programming
    Replies: 9
    Last Post: 08-22-2003, 08:21 AM
  5. errors in class(urgent )
    By ayesha in forum C++ Programming
    Replies: 1
    Last Post: 11-10-2001, 09:14 PM

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