Click here to Skip to main content
15,916,702 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get many values in a variable from database. Pin
Nekshan25-Feb-07 21:27
Nekshan25-Feb-07 21:27 
GeneralRe: Get many values in a variable from database. Pin
virendra patel25-Feb-07 21:28
virendra patel25-Feb-07 21:28 
QuestionGet all namespaces Pin
iqueiroz22-Feb-07 23:15
iqueiroz22-Feb-07 23:15 
QuestionRecognize sounds from midi Pin
sharpiesharpie22-Feb-07 23:12
sharpiesharpie22-Feb-07 23:12 
AnswerRe: Recognize sounds from midi Pin
Christian Graus23-Feb-07 0:00
protectorChristian Graus23-Feb-07 0:00 
AnswerRe: Recognize sounds from midi Pin
Leslie Sanford24-Feb-07 9:28
Leslie Sanford24-Feb-07 9:28 
QuestionSearch binary string? Pin
Monk11122-Feb-07 22:45
Monk11122-Feb-07 22:45 
AnswerRe: Search binary string? Pin
Stefan Troschuetz22-Feb-07 23:08
Stefan Troschuetz22-Feb-07 23:08 
Monk111 wrote:
How do I iterate through the binary number? Do I need to convert it into some kind of array first?


Of which data type is the binary number? [edit]Forget that question. Should have read the subject more thoroughly.[/edit] If it's a string, you can use simple array syntax to iterate over the single chars:
String binary = "00101011100";
for (int i = 0; i < binary.length; i++)
{
  if (binary[i] == '1')
  {
    // Take your certain action.
  }
}





"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

AnswerRe: Search binary string? Pin
Christian Graus22-Feb-07 23:11
protectorChristian Graus22-Feb-07 23:11 
Questionpredifined array of structures in C#? Pin
bouli22-Feb-07 22:22
bouli22-Feb-07 22:22 
AnswerRe: predifined array of structures in C#? Pin
Christian Graus22-Feb-07 22:27
protectorChristian Graus22-Feb-07 22:27 
GeneralRe: predifined array of structures in C#? Pin
bouli22-Feb-07 22:45
bouli22-Feb-07 22:45 
GeneralRe: predifined array of structures in C#? Pin
Christian Graus22-Feb-07 23:38
protectorChristian Graus22-Feb-07 23:38 
GeneralRe: predifined array of structures in C#? Pin
bouli22-Feb-07 23:39
bouli22-Feb-07 23:39 
GeneralRe: predifined array of structures in C#? Pin
Luc Pattyn23-Feb-07 10:13
sitebuilderLuc Pattyn23-Feb-07 10:13 
QuestionReferencing a dll or ActiveX Control in .net Pin
salon22-Feb-07 22:06
salon22-Feb-07 22:06 
AnswerRe: Referencing a dll or ActiveX Control in .net Pin
Christian Graus22-Feb-07 22:30
protectorChristian Graus22-Feb-07 22:30 
GeneralRe: Referencing a dll or ActiveX Control in .net Pin
salon22-Feb-07 22:38
salon22-Feb-07 22:38 
QuestionHex to binary? Pin
Monk11122-Feb-07 21:24
Monk11122-Feb-07 21:24 
AnswerRe: Hex to binary? Pin
Sylvester george22-Feb-07 22:16
Sylvester george22-Feb-07 22:16 
AnswerRe: Hex to binary? Pin
blackjack215022-Feb-07 22:16
blackjack215022-Feb-07 22:16 
AnswerRe: Hex to binary? Pin
Christian Graus22-Feb-07 22:26
protectorChristian Graus22-Feb-07 22:26 
QuestionThere is finish painting event? Pin
aukh22-Feb-07 21:17
aukh22-Feb-07 21:17 
AnswerRe: There is finish painting event? Pin
Christian Graus22-Feb-07 23:39
protectorChristian Graus22-Feb-07 23:39 
AnswerRe: There is finish painting event? Pin
Luc Pattyn23-Feb-07 10:20
sitebuilderLuc Pattyn23-Feb-07 10:20 

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.