| 04:35:46 | CoolMoDee | hey Bakemono |
| 08:29:12 | NANOSAURUS | yo |
| 08:37:33 | Bakemono | hey |
| 08:41:15 | NANOSAURUS | do u code in C/C++? |
| 08:41:35 | Bakemono | yes |
| 08:41:57 | NANOSAURUS | does C++ have any built in functions to convert dec to bin? |
| 08:42:45 | Bakemono | uhh.... |
| 08:42:49 | Bakemono | what do you mean by dec? |
| 08:42:54 | NANOSAURUS | decimal |
| 08:42:56 | NANOSAURUS | to bin |
| 08:43:01 | NANOSAURUS | bin == binary |
| 08:43:06 | Bakemono | yeah.. |
| 08:43:18 | Bakemono | if you go 'int myInt = 42' it's storing it a binary... |
| 08:43:39 | NANOSAURUS | no like output to the screen |
| 08:43:44 | | NANOSAURUS: that doesn't look right |
| 08:43:44 | NANOSAURUS | change the base |
| 08:43:48 | Bakemono | oh oh |
| 08:43:50 | Bakemono | gimme a sec |
| 08:44:04 | | nanosaurus: i haven't a clue |
| 08:44:04 | NANOSAURUS | ibot: what doesnt? |
| 08:44:04 | Bakemono | I wrote a program just the other day that does that |
| 08:44:15 | NANOSAURUS | damn C++ class |
| 08:44:23 | Bakemono | it's written in C though |
| 08:44:25 | Bakemono | wait no |
| 08:44:27 | Bakemono | it's C++ |
| 08:44:30 | NANOSAURUS | sweet |
| 08:45:06 | Bakemono | C++ has no built in way to output in binary |
| 08:45:16 | Bakemono | oh wait |
| 08:45:18 | Bakemono | it is in ?C |
| 08:45:20 | Bakemono | C* |
| 08:45:24 | Bakemono | let me convert it real quick |
| 08:46:00 | NANOSAURUS | i just need a parser or a built in function to output a decimal number as binary |
| 08:46:44 | NANOSAURUS | I probably could write my own parser but A: im too lazy and B: why should I do it if the computer can do it for me |
| 08:47:43 | Bakemono | wtf |
| 08:47:45 | Bakemono | this is wierd |
| 08:48:55 | NANOSAURUS | what is? |
| 08:49:14 | Bakemono | BAH |
| 08:49:17 | Bakemono | I'm an idiot |
| 08:49:50 | Bakemono | void printbin(int num) { |
| 08:49:50 | Bakemono | if(num == 0) { |
| 08:49:50 | Bakemono | return; |
| 08:49:50 | Bakemono | } else { |
| 08:49:50 | Bakemono | printbin(num >> 1); |
| 08:49:50 | Bakemono | cout << (num & 1); |
| 08:49:52 | Bakemono | } |
| 08:49:54 | Bakemono | } |
| 08:49:58 | Bakemono | that'll do it for you |
| 08:50:46 | NANOSAURUS | sweet thanx |
| 08:51:46 | Bakemono | you might be able to use it in a string with some voodo |
| 08:51:48 | Bakemono | voodoo* |
| 08:52:01 | Bakemono | like 'cout << printbin(42) << endl;' |
| 08:54:25 | NANOSAURUS | it not working |
| 08:55:09 | Bakemono | runtime or compile time troubles? |
| 08:56:53 | NANOSAURUS | runtime |
| 08:57:00 | Bakemono | hmm |
| 08:57:04 | Bakemono | just pass it an integer |
| 08:57:09 | Bakemono | bash-2.04$ ./a.out |
| 08:57:09 | Bakemono | Enter a number: 8 |
| 08:57:09 | Bakemono | 8 = 1000 |
| 08:57:20 | NANOSAURUS | when i input 5 dec and tell it to convert to bin it outputs 1 |
| 08:57:43 | Bakemono | http://scurvypenguin.net:8080/dec2bin.cpp |
| 08:57:45 | Bakemono | check that out |
| 08:57:57 | Bakemono | now I must get back to my homework |
| 08:59:48 | NANOSAURUS | ok it works thanx |
| 09:00:12 | Bakemono | cool |
| 09:00:51 | NANOSAURUS | \quit im out thanx for yer help l8er |
| 09:00:56 | NANOSAURUS | ooops |
| 09:00:57 | NANOSAURUS | LOL |
| 09:00:58 | Bakemono | lol |
| 09:00:59 | Bakemono | later |
| 09:01:02 | NANOSAURUS | l8er |
| 18:04:08 | CoolMoDee | wb from the dead Bakemono |
| 18:04:16 | Bakemono | thank you |
| 18:39:58 | NDR008 | hi guys |
| 18:40:40 | CoolMoDee | hey |
| 18:40:42 | CoolMoDee | wassup? |
| 18:58:48 | CoolMoDee|BBL | is away: Be Back Later |
| 19:16:08 | CoolMoDee | is back (gone 00:17:19) |
| 21:30:28 | Borg | Yo yo yo |
| 21:30:37 | Bakemono | ehh... |
| 21:33:05 | | hola, rcam |
| 21:33:05 | rcam | hi |
| 21:33:50 | | salut, [57th]cneal |
| 21:33:50 | [57th]cneal | hola |
| 21:35:14 | Bakemono | konnichiwa |
| 21:56:29 | CoolMoDee | hey |
| 21:56:44 | CoolMoDee | hey rcam |
| 21:57:14 | CoolMoDee | sure has been dead in here lately |
| 22:04:08 | Borg | so....how can one get a hold of a tuxbox? |
| 22:57:36 | CoolMoDee | wb |
| 23:54:10 | Bakemono|Away | techgod? |
| 23:54:11 | Bakemono|Away | nice nick |
| 23:55:00 | Bakemono|Away | leaves |