Click here to Skip to main content
15,918,243 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DirectX hierarchy - who is on first? Pin
Richard MacCutchan17-Aug-13 5:45
mveRichard MacCutchan17-Aug-13 5:45 
AnswerRe: DirectX hierarchy - who is on first? SOLVED Pin
Vaclav_17-Aug-13 18:12
Vaclav_17-Aug-13 18:12 
Questionerror -1.#IND00 in vc++2010 Pin
yahya7716-Aug-13 5:40
yahya7716-Aug-13 5:40 
AnswerRe: error -1.#IND00 in vc++2010 Pin
Chris Losinger16-Aug-13 5:55
professionalChris Losinger16-Aug-13 5:55 
AnswerRe: error -1.#IND00 in vc++2010 Pin
Thong LeTrung16-Aug-13 6:22
Thong LeTrung16-Aug-13 6:22 
AnswerRe: error -1.#IND00 in vc++2010 Pin
Thong LeTrung16-Aug-13 6:40
Thong LeTrung16-Aug-13 6:40 
GeneralRe: error -1.#IND00 in vc++2010 Pin
yahya7716-Aug-13 7:07
yahya7716-Aug-13 7:07 
AnswerRe: error -1.#IND00 in vc++2010 Pin
Thong LeTrung16-Aug-13 7:04
Thong LeTrung16-Aug-13 7:04 
I am sorry , I see error for you .
I have a example , i hope this example will help you.

What will be output of the following program?

#include<stdio.h>
int main(){
    float a=0.7;d 
    if(a<0.7){
         printf("C");
    }
    else{
         printf("C++");
    }
    return 0;
}



EXPLANATION

Output:

Turbo C++ 3.0: c

Turbo C ++4.5: c

Linux GCC: c

Visual C++: c


Explanation:
0.7 is double constant (Default). Its binary value is written in 64 bit.

Binary value of 0.7 = (0.1011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 )

Now here variable a is a floating point variable while 0.7 is double constant. So variable a will contain only 32 bit value i.e.

a = 0.1011 0011 0011 0011 0011 0011 0011 0011 while
0.7 = 0.1011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011....
It is obvious a < 0.7
GeneralRe: error -1.#IND00 in vc++2010 Pin
yahya7716-Aug-13 7:17
yahya7716-Aug-13 7:17 
QuestionHow To Save Data for Microsoft Word 2007 or 2010 on Windows OS Pin
Thong LeTrung15-Aug-13 23:07
Thong LeTrung15-Aug-13 23:07 
AnswerRe: How To Save Data for Microsoft Word 2007 or 2010 on Windows OS Pin
Erudite_Eric15-Aug-13 23:13
Erudite_Eric15-Aug-13 23:13 
GeneralRe: How To Save Data for Microsoft Word 2007 or 2010 on Windows OS Pin
Thong LeTrung15-Aug-13 23:44
Thong LeTrung15-Aug-13 23:44 
GeneralRe: How To Save Data for Microsoft Word 2007 or 2010 on Windows OS Pin
Erudite_Eric16-Aug-13 1:25
Erudite_Eric16-Aug-13 1:25 
GeneralRe: How To Save Data for Microsoft Word 2007 or 2010 on Windows OS Pin
Thong LeTrung16-Aug-13 19:03
Thong LeTrung16-Aug-13 19:03 
GeneralRe: How To Save Data for Microsoft Word 2007 or 2010 on Windows OS Pin
Erudite_Eric16-Aug-13 22:56
Erudite_Eric16-Aug-13 22:56 
GeneralRe: How To Save Data for Microsoft Word 2007 or 2010 on Windows OS Pin
Thong LeTrung18-Aug-13 4:17
Thong LeTrung18-Aug-13 4:17 
QuestionResize split window Pin
john563215-Aug-13 20:04
john563215-Aug-13 20:04 
AnswerRe: Resize split window Pin
enhzflep15-Aug-13 21:52
enhzflep15-Aug-13 21:52 
AnswerRe: Resize split window Pin
Mizan Rahman16-Aug-13 3:05
Mizan Rahman16-Aug-13 3:05 
Questioncannot open program database vc90.pdb Pin
john563215-Aug-13 19:39
john563215-Aug-13 19:39 
AnswerRe: cannot open program database vc90.pdb Pin
«_Superman_»15-Aug-13 20:01
professional«_Superman_»15-Aug-13 20:01 
QuestionStatic library with MFC support Pin
Vaclav_14-Aug-13 8:52
Vaclav_14-Aug-13 8:52 
QuestionRe: Static library with MFC support Pin
Richard MacCutchan15-Aug-13 2:13
mveRichard MacCutchan15-Aug-13 2:13 
AnswerRe: Static library with MFC support Pin
Erudite_Eric15-Aug-13 3:52
Erudite_Eric15-Aug-13 3:52 
GeneralRe: Static library with MFC support Pin
Richard MacCutchan15-Aug-13 4:34
mveRichard MacCutchan15-Aug-13 4:34 

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.