Click here to Skip to main content
15,885,366 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: list control Pin
Hamid_RT15-Mar-07 20:04
Hamid_RT15-Mar-07 20:04 
AnswerRe: list control Pin
ThatsAlok15-Mar-07 23:33
ThatsAlok15-Mar-07 23:33 
QuestionCRectTracker Pin
Gabor Kalman15-Mar-07 15:55
Gabor Kalman15-Mar-07 15:55 
Answerrepost Pin
toxcct15-Mar-07 23:25
toxcct15-Mar-07 23:25 
GeneralRe: repost Pin
ThatsAlok16-Mar-07 0:02
ThatsAlok16-Mar-07 0:02 
QuestionCRectTracer Pin
Gabor Kalman15-Mar-07 14:24
Gabor Kalman15-Mar-07 14:24 
QuestionPalindrome Number Pin
Lorisabel15-Mar-07 13:02
Lorisabel15-Mar-07 13:02 
AnswerRe: Palindrome Number Pin
David Crow15-Mar-07 16:41
David Crow15-Mar-07 16:41 
Lorisabel wrote:
I get this message " 'pow': ambiguous call to overloaded function"... Could anyone please tell me what causes these function to fail...


The function is not failing. Rather, the compiler cannot figure out which (of the seven) pow() functions to call based on the type of arguments being passed to it.

Lorisabel wrote:
while(num/static_cast(pow(10,pwr))>=10)


Break this up into multiple statements so that you can figure out what is going on. Bunching it all up together does not buy you anything performance-wise.

Your function looks overly complicated. You could simplify it a bit by comparing the symmetrically opposite pairs of digits. For example, in the number 24677642, you would first compare the 2s, then the 4s, then the 6s, and finally the 7s.

2 4 6 7               7 6 4 2
      ^---Last pass---^
    ^----Third  pass----^
  ^------Second pass------^
^--------First  pass--------^



"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

"Judge not by the eye but by the heart." - Native American Proverb


GeneralRe: Palindrome Number Pin
Lorisabel16-Mar-07 5:17
Lorisabel16-Mar-07 5:17 
Questionfile size display Pin
badenmaher6915-Mar-07 12:40
badenmaher6915-Mar-07 12:40 
AnswerRe: file size display Pin
toxcct15-Mar-07 12:56
toxcct15-Mar-07 12:56 
AnswerRe: file size display Pin
ThatsAlok16-Mar-07 0:03
ThatsAlok16-Mar-07 0:03 
QuestionCFormView vs. Dialog Pin
ScotDolan15-Mar-07 12:13
ScotDolan15-Mar-07 12:13 
QuestionDrawing on different types of bitmaps Pin
Jim Crafton15-Mar-07 11:27
Jim Crafton15-Mar-07 11:27 
AnswerRe: Drawing on different types of bitmaps Pin
Jim Crafton15-Mar-07 12:21
Jim Crafton15-Mar-07 12:21 
QuestionAbout Chinese characters Convert Ascii Pin
MyNothing15-Mar-07 8:05
MyNothing15-Mar-07 8:05 
AnswerRe: About Chinese characters Convert Ascii Pin
Mark Salsbery15-Mar-07 9:24
Mark Salsbery15-Mar-07 9:24 
QuestionRun exe Pin
prathuraj15-Mar-07 7:01
prathuraj15-Mar-07 7:01 
AnswerRe: Run exe Pin
David Crow15-Mar-07 7:07
David Crow15-Mar-07 7:07 
GeneralRe: Run exe Pin
prathuraj15-Mar-07 7:50
prathuraj15-Mar-07 7:50 
QuestionRe: Run exe Pin
David Crow15-Mar-07 8:00
David Crow15-Mar-07 8:00 
QuestionProblem In Printing Pin
Neptunex15-Mar-07 6:36
Neptunex15-Mar-07 6:36 
AnswerRe: Problem In Printing Pin
Mark Salsbery15-Mar-07 7:28
Mark Salsbery15-Mar-07 7:28 
GeneralRe: Problem In Printing Pin
Neptunex16-Mar-07 21:56
Neptunex16-Mar-07 21:56 
GeneralRe: Problem In Printing Pin
Mark Salsbery17-Mar-07 8:42
Mark Salsbery17-Mar-07 8:42 

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.