Click here to Skip to main content
15,909,829 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to convert "D:\Documents\delay.txt" to "D:\\Documents\\delay.txt"? Pin
toxcct23-Sep-08 21:30
toxcct23-Sep-08 21:30 
QuestionIs this corrent. Pin
Member 409922223-Sep-08 16:33
Member 409922223-Sep-08 16:33 
AnswerRe: Is this corrent. Pin
fzhsheng23-Sep-08 17:35
fzhsheng23-Sep-08 17:35 
GeneralRe: Is this corrent. Pin
Member 409922223-Sep-08 18:08
Member 409922223-Sep-08 18:08 
GeneralRe: Is this corrent. Pin
David Crow24-Sep-08 4:20
David Crow24-Sep-08 4:20 
GeneralRe: Is this corrent. Pin
Member 409922224-Sep-08 16:35
Member 409922224-Sep-08 16:35 
GeneralRe: Is this corrent. Pin
David Crow24-Sep-08 17:24
David Crow24-Sep-08 17:24 
GeneralRe: Is this corrent. Pin
Member 409922224-Sep-08 20:32
Member 409922224-Sep-08 20:32 
unsigned int a,b,c;
void main()
{ a=10;
  b=7;
 c=a>>5;
 b=c|a;
 a=~c&~b;
 c=b*a^5;
}
end


this is how is work on,
c=a>>5 ; //so c=10/32=0.3125
b=c|a; // so b=0.3125|10 = 1 (this one i'm not sure it right)
a=~c&~b; // so ~c= -0.3125 and ~b= 0. so ~c&~b=0 (& is AND operator)
c=b*a^5; // so b=1 and a^5=5 (^ is XOR operator)
so the final value for a,b and c
a=0 b=1 and c=5.

Please confirm that my work is right. Thanks for your help.
cheers
QuestionRe: Is this corrent. Pin
David Crow25-Sep-08 3:36
David Crow25-Sep-08 3:36 
AnswerRe: Is this corrent. Pin
George L. Jackson23-Sep-08 17:44
George L. Jackson23-Sep-08 17:44 
GeneralRe: Is this corrent. Pin
Member 409922223-Sep-08 20:44
Member 409922223-Sep-08 20:44 
GeneralRe: Is this corrent. Pin
toxcct23-Sep-08 21:24
toxcct23-Sep-08 21:24 
QuestionHow to save HDC to a file? Pin
TooShy2Talk23-Sep-08 15:59
TooShy2Talk23-Sep-08 15:59 
QuestionHow can I send a file to a given eMail address? Pin
Joseph Marzbani23-Sep-08 11:00
Joseph Marzbani23-Sep-08 11:00 
AnswerRe: How can I send a file to a given eMail address? Pin
SandipG 23-Sep-08 19:15
SandipG 23-Sep-08 19:15 
QuestionGet drive letters and thier types ... [modified] Pin
Joseph Marzbani23-Sep-08 9:52
Joseph Marzbani23-Sep-08 9:52 
AnswerRe: Get drive letters and thier types ... Pin
Perspx23-Sep-08 10:07
Perspx23-Sep-08 10:07 
GeneralRe: Get drive letters and thier types ... Pin
Joseph Marzbani23-Sep-08 10:53
Joseph Marzbani23-Sep-08 10:53 
AnswerRe: Get drive letters and thier types ... Pin
David Crow23-Sep-08 10:07
David Crow23-Sep-08 10:07 
GeneralRe: Get drive letters and thier types ... Pin
Joseph Marzbani23-Sep-08 10:47
Joseph Marzbani23-Sep-08 10:47 
QuestionMake a pointer to a member function ... Pin
Joseph Marzbani23-Sep-08 7:13
Joseph Marzbani23-Sep-08 7:13 
AnswerRe: Make a pointer to a member function ... Pin
David Crow23-Sep-08 7:20
David Crow23-Sep-08 7:20 
GeneralRe: Make a pointer to a member function ... Pin
Joseph Marzbani23-Sep-08 7:44
Joseph Marzbani23-Sep-08 7:44 
AnswerRe: Make a pointer to a member function ... Pin
Cedric Moonen23-Sep-08 7:22
Cedric Moonen23-Sep-08 7:22 
GeneralRe: Make a pointer to a member function ... Pin
Joseph Marzbani23-Sep-08 7:43
Joseph Marzbani23-Sep-08 7:43 

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.