Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 9th, 2005, 1:56 PM   #1
layer
Hobbyist Programmer
 
Join Date: Feb 2005
Posts: 112
Rep Power: 4 layer is on a distinguished road
Cool Binary2Text & Text2Binary

just an idea, from this website: http://www.adcott.net/binary/

is to create a Binary2Text and Text2Binary translator... would it be hard, or easy? id like to hear some opinions

01110011 01100101 01100101 00101100 00100000 01101100 01101001 01101011 01100101 00100000 01110100 01101000 01101001 01110011 00100000 01101001 01110011 00100000 01110000 01110010 01100101 01110100 01110100 01111001 00100000 01100011 01101111 01101111 01101100 00100000 01100001 01101001 01101110 01110100 00100000 01101001 01110100 00100001 00111111
layer is offline   Reply With Quote
Old Mar 9th, 2005, 2:07 PM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
I think it would be pretty easy, since that looks like a javascript.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Mar 9th, 2005, 2:19 PM   #3
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,623
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
it would be pretty easy. cause really all you do is convert the text to a acsii number and then convert that number into binary version of it
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old Mar 9th, 2005, 3:54 PM   #4
Christian_Rosenkreuz_777
Newbie
 
Join Date: Feb 2005
Location: Charlottesville, VA (rated #1 place to live)
Posts: 25
Rep Power: 0 Christian_Rosenkreuz_777 is on a distinguished road
It's cinchy. That was one of my first programs, back when I programmed GW-BASIC (I still write little computer games in it for my little brother)
__________________
Cavear Emptor
Christian_Rosenkreuz_777 is offline   Reply With Quote
Old Mar 9th, 2005, 5:24 PM   #5
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
ultra easy... for a level of complexity.. add in octal and hexadecimal also
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Mar 9th, 2005, 6:59 PM   #6
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 4 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
It would be very simple. Two arrays, a while loop, and that's all you need.
Mad_guy is offline   Reply With Quote
Old Mar 9th, 2005, 7:14 PM   #7
Cipher
Hobbyist Programmer
 
Cipher's Avatar
 
Join Date: Feb 2005
Location: /home/cipher
Posts: 123
Rep Power: 4 Cipher is on a distinguished road
Send a message via AIM to Cipher Send a message via MSN to Cipher
Not for me. Especially if I do it in C++. I have always thought about making one though.
__________________
And there was much rejoicing... Yay....
Cipher is offline   Reply With Quote
Old Mar 9th, 2005, 8:23 PM   #8
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 4 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
It's actually very simple. I just made one in C, no sweat thinking about how to do it. I can't say the same for the debugging process though. Two arrays, couple loops and a bit of counting, and that's it.

I could show you the code, but it has a son of a bitch return flaw I need to rectify. I'll let you see it after I get the code fully working
Mad_guy is offline   Reply With Quote
Old Mar 10th, 2005, 2:29 PM   #9
layer
Hobbyist Programmer
 
Join Date: Feb 2005
Posts: 112
Rep Power: 4 layer is on a distinguished road
well, for YOU it would be easy, for ME it would be quite a challenge since many of you know i am new to C++... but im sure i could give it a shot... just dont know how to convert text to acsii and then to binary.. well actually, i could do that acsii but is there a good site that explains how to convert it to binary? ive only heard that you use a chart with like 64 or whatever... thats all i know.. any siteS??
layer is offline   Reply With Quote
Old Apr 2nd, 2005, 7:22 AM   #10
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
well I understand that you can just use printf in some special way to print it as binary, can't you? I'm not exactly sure how...
uman is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:09 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC