Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
AnswerRe: help me Pin
thatraja22-Aug-11 18:22
professionalthatraja22-Aug-11 18:22 
AnswerRe: help me Pin
daniel_leto2322-Aug-11 18:33
daniel_leto2322-Aug-11 18:33 
GeneralRe: help me Pin
Not Active22-Aug-11 19:01
mentorNot Active22-Aug-11 19:01 
AnswerRe: help me PinPopular
RobCroll22-Aug-11 19:09
RobCroll22-Aug-11 19:09 
GeneralRe: help me Pin
Smithers-Jones22-Aug-11 20:58
Smithers-Jones22-Aug-11 20:58 
QuestionStackOverflowException Pin
abolfazl delbari22-Aug-11 13:08
abolfazl delbari22-Aug-11 13:08 
AnswerRe: StackOverflowException [modified] PinPopular
Luc Pattyn22-Aug-11 13:32
sitebuilderLuc Pattyn22-Aug-11 13:32 
GeneralRe: StackOverflowException Pin
abolfazl delbari22-Aug-11 14:48
abolfazl delbari22-Aug-11 14:48 
1.you said "your method calls itself with the same input value" but if if statement become true f-values will change;line before switch.
2.I explain this with my sample:12
with input 12 first loop check from 12 till down until 8.At 8 when j become 3 at second loop (second loop prepare all possibilities for 2 power j) at this point if statement will true and run
C#
f = f - (int)Math.Pow(2, j)
that turn f to 4 then run
C#
cbx3.Checked = true;
in the later round of first loop when i=4 and j=2 , if statement will be true again and will run
C#
f = f - (int)Math.Pow(2, j);
that turn f to 0 then run
C#
cbx2.Checked = true;

3.The myBinaryCheckboxes1 is unclear for me specially (f & 0x0001). What means that?
AnswerRe: StackOverflowException Pin
Luc Pattyn22-Aug-11 15:23
sitebuilderLuc Pattyn22-Aug-11 15:23 
SuggestionRe: StackOverflowException Pin
lukeer22-Aug-11 20:46
lukeer22-Aug-11 20:46 
AnswerRe: StackOverflowException [modified] Pin
Luc Pattyn23-Aug-11 1:47
sitebuilderLuc Pattyn23-Aug-11 1:47 
GeneralRe: StackOverflowException Pin
PIEBALDconsult23-Aug-11 3:13
mvePIEBALDconsult23-Aug-11 3:13 
AnswerRe: StackOverflowException Pin
Luc Pattyn23-Aug-11 3:28
sitebuilderLuc Pattyn23-Aug-11 3:28 
GeneralRe: StackOverflowException Pin
PIEBALDconsult23-Aug-11 3:34
mvePIEBALDconsult23-Aug-11 3:34 
QuestionRe: StackOverflowException Pin
Luc Pattyn23-Aug-11 5:46
sitebuilderLuc Pattyn23-Aug-11 5:46 
AnswerRe: StackOverflowException Pin
PIEBALDconsult23-Aug-11 14:16
mvePIEBALDconsult23-Aug-11 14:16 
GeneralRe: StackOverflowException Pin
GParkings1-Sep-11 7:35
GParkings1-Sep-11 7:35 
GeneralRe: StackOverflowException Pin
Luc Pattyn1-Sep-11 8:11
sitebuilderLuc Pattyn1-Sep-11 8:11 
JokeRe: StackOverflowException Pin
PIEBALDconsult22-Aug-11 14:47
mvePIEBALDconsult22-Aug-11 14:47 
GeneralRe: StackOverflowException Pin
abolfazl delbari22-Aug-11 15:00
abolfazl delbari22-Aug-11 15:00 
Questionvirtual USB device Pin
Grimes22-Aug-11 11:03
Grimes22-Aug-11 11:03 
AnswerRe: virtual USB device Pin
Rutvik Dave22-Aug-11 11:26
professionalRutvik Dave22-Aug-11 11:26 
GeneralRe: virtual USB device Pin
Grimes22-Aug-11 11:41
Grimes22-Aug-11 11:41 
AnswerRe: virtual USB device Pin
Bernhard Hiller22-Aug-11 22:29
Bernhard Hiller22-Aug-11 22:29 
GeneralRe: virtual USB device Pin
Grimes22-Aug-11 22:39
Grimes22-Aug-11 22:39 

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.