irclog2html for tuxboxproject on 2002.05.13

04:35:46CoolMoDeehey Bakemono
08:29:12NANOSAURUSyo
08:37:33Bakemonohey
08:41:15NANOSAURUSdo u code in C/C++?
08:41:35Bakemonoyes
08:41:57NANOSAURUSdoes C++ have any built in functions to convert dec to bin?
08:42:45Bakemonouhh....
08:42:49Bakemonowhat do you mean by dec?
08:42:54NANOSAURUSdecimal
08:42:56NANOSAURUSto bin
08:43:01NANOSAURUSbin == binary
08:43:06Bakemonoyeah..
08:43:18Bakemonoif you go 'int myInt = 42' it's storing it a binary...
08:43:39NANOSAURUSno like output to the screen
08:43:44NANOSAURUS: that doesn't look right
08:43:44NANOSAURUSchange the base
08:43:48Bakemonooh oh
08:43:50Bakemonogimme a sec
08:44:04nanosaurus: i haven't a clue
08:44:04NANOSAURUSibot: what doesnt?
08:44:04BakemonoI wrote a program just the other day that does that
08:44:15NANOSAURUSdamn C++ class
08:44:23Bakemonoit's written in C though
08:44:25Bakemonowait no
08:44:27Bakemonoit's C++
08:44:30NANOSAURUSsweet
08:45:06BakemonoC++ has no built in way to output in binary
08:45:16Bakemonooh wait
08:45:18Bakemonoit is in ?C
08:45:20BakemonoC*
08:45:24Bakemonolet me convert it real quick
08:46:00NANOSAURUSi just need a parser or a built in function to output a decimal number as binary
08:46:44NANOSAURUSI 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:43Bakemonowtf
08:47:45Bakemonothis is wierd
08:48:55NANOSAURUSwhat is?
08:49:14BakemonoBAH
08:49:17BakemonoI'm an idiot
08:49:50Bakemonovoid printbin(int num) {
08:49:50Bakemono   if(num == 0) {
08:49:50Bakemono      return;
08:49:50Bakemono   } else {
08:49:50Bakemono      printbin(num >> 1);
08:49:50Bakemono      cout << (num & 1);
08:49:52Bakemono   }
08:49:54Bakemono}
08:49:58Bakemonothat'll do it for you
08:50:46NANOSAURUSsweet thanx
08:51:46Bakemonoyou might be able to use it in a string with some voodo
08:51:48Bakemonovoodoo*
08:52:01Bakemonolike 'cout << printbin(42) << endl;'
08:54:25NANOSAURUSit not working
08:55:09Bakemonoruntime or compile time troubles?
08:56:53NANOSAURUSruntime
08:57:00Bakemonohmm
08:57:04Bakemonojust pass it an integer
08:57:09Bakemonobash-2.04$ ./a.out
08:57:09BakemonoEnter a number: 8
08:57:09Bakemono8 = 1000
08:57:20NANOSAURUSwhen i input 5 dec and tell it to convert to bin it outputs 1
08:57:43Bakemonohttp://scurvypenguin.net:8080/dec2bin.cpp
08:57:45Bakemonocheck that out
08:57:57Bakemononow I must get back to my homework
08:59:48NANOSAURUSok it works thanx
09:00:12Bakemonocool
09:00:51NANOSAURUS\quit im out thanx for yer help l8er
09:00:56NANOSAURUSooops
09:00:57NANOSAURUSLOL
09:00:58Bakemonolol
09:00:59Bakemonolater
09:01:02NANOSAURUSl8er
18:04:08CoolMoDeewb from the dead Bakemono
18:04:16Bakemonothank you
18:39:58NDR008hi guys
18:40:40CoolMoDeehey
18:40:42CoolMoDeewassup?
18:58:48CoolMoDee|BBLis away: Be Back Later
19:16:08CoolMoDeeis back (gone 00:17:19)
21:30:28BorgYo yo yo
21:30:37Bakemonoehh...
21:33:05hola, rcam
21:33:05rcamhi
21:33:50salut, [57th]cneal
21:33:50[57th]cnealhola
21:35:14Bakemonokonnichiwa
21:56:29CoolMoDeehey
21:56:44CoolMoDeehey rcam
21:57:14CoolMoDeesure has been dead in here lately
22:04:08Borgso....how can one get a hold of a tuxbox?
22:57:36CoolMoDeewb
23:54:10Bakemono|Awaytechgod?
23:54:11Bakemono|Awaynice nick
23:55:00Bakemono|Awayleaves

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with infobot logs, split per channel and by date, etc.