Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFace Recognition using opencv and c++ Pin
nonness29-May-13 1:08
nonness29-May-13 1:08 
AnswerRe: Face Recognition using opencv and c++ Pin
Chris Losinger29-May-13 9:06
professionalChris Losinger29-May-13 9:06 
AnswerRe: Face Recognition using opencv and c++ Pin
Alan Balkany30-May-13 9:42
Alan Balkany30-May-13 9:42 
Questionproblem on show messagebox on ON_EN_CHANGE of edit control. Pin
Le@rner29-May-13 0:05
Le@rner29-May-13 0:05 
AnswerRe: problem on show messagebox on ON_EN_CHANGE of edit control. Pin
Richard MacCutchan29-May-13 6:58
mveRichard MacCutchan29-May-13 6:58 
AnswerRe: problem on show messagebox on ON_EN_CHANGE of edit control. Pin
Newbie0029-May-13 8:12
Newbie0029-May-13 8:12 
GeneralRe: problem on show messagebox on ON_EN_CHANGE of edit control. Pin
Le@rner7-Jun-13 21:24
Le@rner7-Jun-13 21:24 
QuestionA strange appearance about the NaN 1.#IND Pin
Henry Hong28-May-13 19:11
Henry Hong28-May-13 19:11 
Hi, all!

I am a rookie about C/C++,when i debugged my project, i met a problem about 1.#IND, and the code is as followed:
C#
h = x2-x1;
a = M1 * pow((x2-x),3);
b = M2 * pow((x-x1),3);
f = M1*h*h;
g = M2*h*h;
temp1 = 6.0*y1 - f;
temp2 = x2-x;
c = temp1 * temp2;

cc = (double)((6.0 * y1 - f)) * (double)((x2 - x));


I have defined all the variables as double, and i think the values of c and cc should be the same, but i found that the variable c got the right value, but the variable cc get the value of "-1.#IND". And what is the strangest? the whole compute above is run in a for loop, the cc only get the -1.#IND when the first time i get into the loop, and then the cc will get right and the same as c value. If i deleted the compute about cc, then the next line of code about other compute will get a -1.#IND for once time.
i am really comfused!!!
is there any master hand had met the same problem or know that is why?
AnswerRe: A strange appearance about the NaN 1.#IND Pin
«_Superman_»28-May-13 19:36
professional«_Superman_»28-May-13 19:36 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
Henry Hong28-May-13 20:04
Henry Hong28-May-13 20:04 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
«_Superman_»28-May-13 20:14
professional«_Superman_»28-May-13 20:14 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
Henry Hong28-May-13 20:32
Henry Hong28-May-13 20:32 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
«_Superman_»28-May-13 20:45
professional«_Superman_»28-May-13 20:45 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
Henry Hong28-May-13 23:37
Henry Hong28-May-13 23:37 
GeneralRe: A strange appearance about the NaN 1.#IND Pin
Henry Hong29-May-13 16:23
Henry Hong29-May-13 16:23 
QuestionCAsyncSocket questions Pin
ForNow28-May-13 4:43
ForNow28-May-13 4:43 
AnswerRe: CAsyncSocket questions Pin
Sivaraman Dhamodharan28-May-13 20:49
Sivaraman Dhamodharan28-May-13 20:49 
GeneralRe: CAsyncSocket questions Pin
ForNow28-May-13 22:33
ForNow28-May-13 22:33 
Questionproblem with using program Creating a Serial communication on Win32 Pin
sindbad1128-May-13 2:00
sindbad1128-May-13 2:00 
AnswerRe: problem with using program Creating a Serial communication on Win32 Pin
Jochen Arndt28-May-13 2:19
professionalJochen Arndt28-May-13 2:19 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
sindbad1128-May-13 22:07
sindbad1128-May-13 22:07 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
Jochen Arndt28-May-13 22:52
professionalJochen Arndt28-May-13 22:52 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
sindbad1128-May-13 23:49
sindbad1128-May-13 23:49 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
Jochen Arndt29-May-13 0:31
professionalJochen Arndt29-May-13 0:31 
GeneralRe: problem with using program Creating a Serial communication on Win32 Pin
sindbad1112-Aug-13 1:19
sindbad1112-Aug-13 1:19 

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.