#include <stdio.h>
#include <conio.h>
void bin_prnt_byte(int x);
void main(void)
{
clrscr();
bin_prnt_byte(0xc);
printf("\n");
Type: Posts; User: expresspotato
#include <stdio.h>
#include <conio.h>
void bin_prnt_byte(int x);
void main(void)
{
clrscr();
bin_prnt_byte(0xc);
printf("\n");
0 <<1 ;
= 00?
:s
Fine lock it and make my evening! I don't see what the difference is, I'm tyring to ........ing learn here. Not sure what I'm doing wrong, all you guys are just saying bit this bit that and not...
What you didn't actually fix anything! Syntax-shmintax, it ran before, you're code didn't even run off the bat!
still no dice on printing binary here, I think I'm about to cry! :'(
THANK YOU MANUTD!
I will test and report back! lol
Hurray, hell has frozen over ;)
Wacha talkin' about, I thought it printed something... jeeze!
THATS WHY I"M HERE LOOKING FOR HELP, you programmers sure got an attitude problem!
what do you mean? like here in the thread? yeah...
LOL don't hate! Appreciate!
But outside of the forum no, just my crazy cracka professor that reminds me of tweak from southpark, he didn't...
Nah it has to print the right time-around...
Okay you can take whatever anger out on me its kewl!
But anyways here's my attempt... :S
#include <stdio.h>
#include <conio.h>
void convert(int);
Sorry about making whoever angry... I really didn't mean to, hes clearly pro tho and me mr noooob.
But yeah which do I want? the right way round, with the while loop!
His version prints it...
Well its just college C... I included the files I needed or duh it won't complile mr 9000 + posts!
Plus the 12 is just as a refernece for ease-of-use to get the thing working...
And yes your...
thanks! I'm not entirely getting this whole bitshifting thing, grrr....
Anyways, here is a code sniplet, how can I re-write this as a while loop? without needing to call bin (it self) everytmie?
...
can you explain the last one a bit better???
I'm a perl guy lol
thank you
Hey yall!
I had a few quesitons about binary here...
- How do I store binary, as an int?
like; int a = 100101010101; ???
- How do I shift bits?
like move this down 3 bits?...