Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

Sorting zeroes and ones

$
0
0
Since my last thread didn't go over too well, I decided to try something different... This time I can't figure out how to sort a string 8 bits in length. The string starts out as 10001000 and depending if there are more zeroes than ones it will feed out a 0 or a 1. 00110000 would be 0 and 11110110 would be 1. I'm using it as error correction and can't figure out a quick way to do this. Any help would be appreciated.

Viewing all articles
Browse latest Browse all 27189

Trending Articles