Click here to Skip to main content
15,897,519 members
Home / Discussions / C#
   

C#

 
GeneralRe: Coding style II - O(n) checks instead O(1) or doubling code? Pin
Pete O'Hanlon5-Jul-11 10:15
mvePete O'Hanlon5-Jul-11 10:15 
AnswerRe: Coding style II - O(n) checks instead O(1) or doubling code? Pin
PIEBALDconsult5-Jul-11 3:13
mvePIEBALDconsult5-Jul-11 3:13 
AnswerRe: Coding style II - O(n) checks instead O(1) or doubling code? Pin
BobJanova5-Jul-11 3:30
BobJanova5-Jul-11 3:30 
QuestionWork with Web cam Pin
Abbath13495-Jul-11 0:31
Abbath13495-Jul-11 0:31 
AnswerRe: Work with Web cam Pin
Richard MacCutchan5-Jul-11 6:28
mveRichard MacCutchan5-Jul-11 6:28 
AnswerRe: Work with Web cam Pin
GuyThiebaut5-Jul-11 10:21
professionalGuyThiebaut5-Jul-11 10:21 
QuestionString value in C# Pin
Pierre besquent5-Jul-11 0:13
Pierre besquent5-Jul-11 0:13 
AnswerRe: String value in C# Pin
Richard MacCutchan5-Jul-11 0:22
mveRichard MacCutchan5-Jul-11 0:22 
I'm not sure what you are trying to do but your code does not seem to correspond to your description. You are looking for a zero in the arry (maybe), or trying to count them, but the line:
if (arr [0] != '0')

means that you never enter the search loop if the first character of your string is '0', as is the case you describe.
The best things in life are not things.

GeneralRe: String value in C# Pin
Pierre besquent5-Jul-11 0:26
Pierre besquent5-Jul-11 0:26 
AnswerRe: String value in C# Pin
Rhuros5-Jul-11 0:46
professionalRhuros5-Jul-11 0:46 
GeneralRe: String value in C# Pin
Richard MacCutchan5-Jul-11 0:59
mveRichard MacCutchan5-Jul-11 0:59 
AnswerRe: String value in C# Pin
BobJanova5-Jul-11 0:39
BobJanova5-Jul-11 0:39 
GeneralRe: String value in C# Pin
Pierre besquent5-Jul-11 0:47
Pierre besquent5-Jul-11 0:47 
GeneralRe: String value in C# Pin
mabo425-Jul-11 2:45
mabo425-Jul-11 2:45 
GeneralRe: String value in C# Pin
Pierre besquent5-Jul-11 5:55
Pierre besquent5-Jul-11 5:55 
GeneralRe: String value in C# Pin
Richard MacCutchan5-Jul-11 6:35
mveRichard MacCutchan5-Jul-11 6:35 
GeneralRe: String value in C# Pin
BobJanova5-Jul-11 6:02
BobJanova5-Jul-11 6:02 
Questiondynamic group by via LINQ Pin
devvvy4-Jul-11 18:16
devvvy4-Jul-11 18:16 
AnswerRe: dynamic group by via LINQ Pin
Abhinav S4-Jul-11 20:30
Abhinav S4-Jul-11 20:30 
QuestionUnmanaged dll call from C#, AccessViolationExceptionMessage [modified] Pin
marca2923-Jul-11 22:24
marca2923-Jul-11 22:24 
AnswerRe: Unmanaged dll call from C#, AccessViolationExceptionMessage Pin
Richard MacCutchan3-Jul-11 22:37
mveRichard MacCutchan3-Jul-11 22:37 
GeneralRe: Unmanaged dll call from C#, AccessViolationExceptionMessage Pin
marca2923-Jul-11 22:47
marca2923-Jul-11 22:47 
GeneralRe: Unmanaged dll call from C#, AccessViolationExceptionMessage Pin
Richard MacCutchan3-Jul-11 23:22
mveRichard MacCutchan3-Jul-11 23:22 
GeneralRe: Unmanaged dll call from C#, AccessViolationExceptionMessage Pin
marca2923-Jul-11 23:26
marca2923-Jul-11 23:26 
AnswerRe: Unmanaged dll call from C#, AccessViolationExceptionMessage Pin
BobJanova4-Jul-11 0:38
BobJanova4-Jul-11 0:38 

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.