Thanks. I read that yesterday and came up with this little code. I'm trying to get it to read the binary of the char and then store either an int 1 or 0 into an array i'm calling hamming3 and...
Type: Posts; User: dre
Thanks. I read that yesterday and came up with this little code. I'm trying to get it to read the binary of the char and then store either an int 1 or 0 into an array i'm calling hamming3 and...
Basically it's 8 bit ASCII value equivalent in binary...
'a' would be 01100001
I would like for my program to be able to give the binary values of these characters. I would then like to be able to work with these binary equivalents and be able to find the hamming distance...
thank you guys.
how am I able to play around with the binary then ?
ok im not going to pretend i know close to as much as you do but here's what i thought was going on:
with input1; input2; method i thought i'd first store the user input and then somehow convert...
ok i'll give it a shot. i think that with the user input i'd have to start by defining say
char input1;
char input2;
and then i'd use scanf to store the user's chars into these char variables...
I'd like to have the user input any two characters and have the binary equivalent of those characters stored in an array.
I believe I read somewhere that all characters do not have the same number...
Is the one's complement of a binary number just the bits flipped ? i.e 1 becomes 0 and 0 becomes 1?
the NOT operator? I don't follow..lol
i have an array of 1s and 0s to represent a binary number. i would like to be able to manipulate the array (or maybe create a new one if neccesary?) which will represent the one's complement of the...
so does anybody have some tips about my actual problem...does the logic look off to anyone or is everyone stumped about this like i am?
weird...im using VS2005 and it works fine for me
Really? What are the errors? It's compiling and running fine for me.
exactly that, just playing around with the bits/bytes that were randomly allocated
i've dynamically allocated an array of two bytes and begun playing around with the bits.
what i've wanted to do is have the program count how many 1s and 0s are in the memory allocated and print out...
lol you guys are bullies...i know its easy to say it now, but when i first read that i had to do that i thought to myself the same thing, like whats the point of dynamically allocating a set amount...
I would like to be able to do this in order to do some manipulation with the two bytes eventually...can anybody show me how to do this?
hey dude that worked thanks
I'm printing out a bunch of numbers with a for loop which makes up a table. Numbers such as 526.74 or 921.63 contribute to the alignment of the table since there are a total of 5 digits in the...