Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: strtok Pin
elchupathingy2-Jul-10 19:26
elchupathingy2-Jul-10 19:26 
GeneralRe: strtok Pin
Stephen Hewitt4-Jul-10 14:42
Stephen Hewitt4-Jul-10 14:42 
AnswerRe: strtok Pin
CPallini2-Jul-10 23:36
mveCPallini2-Jul-10 23:36 
AnswerRe: strtok Pin
Chris Losinger5-Jul-10 4:24
professionalChris Losinger5-Jul-10 4:24 
AnswerRe: strtok Pin
Aescleal5-Jul-10 22:03
Aescleal5-Jul-10 22:03 
QuestionSmallestInt-need algo Pin
mohitadube2-Jul-10 9:48
mohitadube2-Jul-10 9:48 
AnswerRe: SmallestInt-need algo PinPopular
Richard Andrew x642-Jul-10 9:55
professionalRichard Andrew x642-Jul-10 9:55 
QuestionNumTrans-need alogorithm Pin
mohitadube2-Jul-10 9:45
mohitadube2-Jul-10 9:45 
plesae someone help me i need algo for this code!!

There is an integer K. You are allowed to add to K any of its divisors not equal to 1and K. The
same operation can be applied to the resulting number and so on. Notice that starting from the
number 4, we can reach any composite number by applying several such operations. For
example, the number 24 can be reached starting from 4 using 5 operations:
4 6 8 12 18 24
You will solve a more general problem. Given integers n and m, return the minimal number ofthe described operations necessary to transform n into m. Return -1 if m can't be obtained from n.

Definition---
Method signature: int GetLeastCount (int n, int m)

Constraints
N will be between 4 and 100000, inclusive.
M will be between N and 100000, inclusive.

Examples1)
4576
Returns:
14
The shortest order of operations is:4 6 8 12 18 27 36 54 81 108 162 243 324 432 576
2) 874883462
Returns: 10
The shortest order of operations is:
8748 13122 19683 26244 39366 59049 78732 83106 83448 83460 83462
3) 499991
Returns:
-1
The number 99991 can't be obtained because it’s prime!
mohita dubey

Questionabout apihook Pin
rockago2-Jul-10 7:17
rockago2-Jul-10 7:17 
AnswerRe: about apihook Pin
rp_suman3-Jul-10 0:55
rp_suman3-Jul-10 0:55 
GeneralRe: about apihook Pin
rockago3-Jul-10 11:09
rockago3-Jul-10 11:09 
QuestionHow i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
humais2-Jul-10 5:33
humais2-Jul-10 5:33 
AnswerRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
Richard MacCutchan2-Jul-10 7:10
mveRichard MacCutchan2-Jul-10 7:10 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
humais2-Jul-10 8:12
humais2-Jul-10 8:12 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
Richard MacCutchan2-Jul-10 8:34
mveRichard MacCutchan2-Jul-10 8:34 
AnswerRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
CPallini2-Jul-10 8:35
mveCPallini2-Jul-10 8:35 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
humais2-Jul-10 8:54
humais2-Jul-10 8:54 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
CPallini2-Jul-10 9:21
mveCPallini2-Jul-10 9:21 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
humais2-Jul-10 9:29
humais2-Jul-10 9:29 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
CPallini2-Jul-10 10:22
mveCPallini2-Jul-10 10:22 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
Richard MacCutchan2-Jul-10 22:03
mveRichard MacCutchan2-Jul-10 22:03 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
humais3-Jul-10 0:01
humais3-Jul-10 0:01 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
Richard MacCutchan3-Jul-10 0:53
mveRichard MacCutchan3-Jul-10 0:53 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
humais3-Jul-10 8:28
humais3-Jul-10 8:28 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
Richard MacCutchan3-Jul-10 11:07
mveRichard MacCutchan3-Jul-10 11:07 

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.