Click here to Skip to main content
15,888,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
abhishekriyer30-Mar-09 0:27
abhishekriyer30-Mar-09 0:27 
AnswerRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
Rajesh R Subramanian30-Mar-09 0:32
professionalRajesh R Subramanian30-Mar-09 0:32 
GeneralRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
Luc Pattyn30-Mar-09 1:28
sitebuilderLuc Pattyn30-Mar-09 1:28 
GeneralRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
Chandrasekharan P30-Mar-09 0:54
Chandrasekharan P30-Mar-09 0:54 
GeneralRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
David Crow30-Mar-09 4:06
David Crow30-Mar-09 4:06 
GeneralRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
Rajesh R Subramanian30-Mar-09 0:24
professionalRajesh R Subramanian30-Mar-09 0:24 
AnswerRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
Luc Pattyn30-Mar-09 1:31
sitebuilderLuc Pattyn30-Mar-09 1:31 
AnswerRe: PROGRAM TO FIND WHETHER A STRING IS ANAGRAM OR NOT TO SOURCE STRING Pin
josip cagalj30-Mar-09 1:35
josip cagalj30-Mar-09 1:35 
Well, aside from warnings you are getting from others (apply to them please) I'm getting few ideas:
- in anagram all letters must be used (from source string), and only one time (can't re-use the same letter).
Chack for length (without spaces) it must be equal.
Next you can use source string as matching point, start from first letter and check for existing in trial string. If it exist remove it from both strings, if it doesn't your trial string is not an anagram.Preform that operation until you check all letters. If an empty string is what is left than yours trial string is indeed an anagram.
Hope this helps.
QuestionHow to get access right to Registry in Vista Pin
Nitheesh George29-Mar-09 21:54
Nitheesh George29-Mar-09 21:54 
AnswerRe: How to get access right to Registry in Vista Pin
Stuart Dootson29-Mar-09 23:26
professionalStuart Dootson29-Mar-09 23:26 
GeneralRe: How to get access right to Registry in Vista Pin
Nitheesh George30-Mar-09 3:12
Nitheesh George30-Mar-09 3:12 
QuestionProblem getting element from CDHtmlDialog when loading the HTML from a file using Navigate() Pin
electric_one200129-Mar-09 21:35
electric_one200129-Mar-09 21:35 
AnswerRe: Problem getting element from CDHtmlDialog when loading the HTML from a file using Navigate() Pin
led mike30-Mar-09 4:38
led mike30-Mar-09 4:38 
GeneralRe: Problem getting element from CDHtmlDialog when loading the HTML from a file using Navigate() Pin
electric_one200130-Mar-09 6:40
electric_one200130-Mar-09 6:40 
AnswerRe: Problem getting element from CDHtmlDialog when loading the HTML from a file using Navigate() Pin
jerryworm14-Nov-09 22:47
jerryworm14-Nov-09 22:47 
QuestionImages in Dll Pin
kiranin29-Mar-09 21:33
kiranin29-Mar-09 21:33 
AnswerRe: Images in Dll [modified] Pin
Stuart Dootson29-Mar-09 22:12
professionalStuart Dootson29-Mar-09 22:12 
GeneralRe: Images in Dll Pin
kiranin30-Mar-09 1:51
kiranin30-Mar-09 1:51 
GeneralRe: Images in Dll Pin
Stuart Dootson30-Mar-09 1:56
professionalStuart Dootson30-Mar-09 1:56 
GeneralRe: Images in Dll Pin
kiranin30-Mar-09 1:59
kiranin30-Mar-09 1:59 
GeneralRe: Images in Dll Pin
Stuart Dootson30-Mar-09 2:03
professionalStuart Dootson30-Mar-09 2:03 
GeneralRe: Images in Dll Pin
kiranin4-Apr-09 1:18
kiranin4-Apr-09 1:18 
GeneralRe: Images in Dll Pin
Stuart Dootson4-Apr-09 2:38
professionalStuart Dootson4-Apr-09 2:38 
GeneralRe: Images in Dll [modified] Pin
kiranin4-Apr-09 2:53
kiranin4-Apr-09 2:53 
GeneralRe: Images in Dll Pin
Stuart Dootson4-Apr-09 8:51
professionalStuart Dootson4-Apr-09 8:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.