Important alert: (current site time 7/15/2013 6:17:21 PM EDT)
 

winzip icon

A really cool binary translator!

Email
Submitted on: 10/18/2005 11:08:53 AM
By: Peter Evers 
Level: Beginner
User Rating: By 4 Users
Compatibility: C, C++ (general), Microsoft Visual C++, Borland C++, UNIX C++
Views: 13210
author picture
(About the author)
 
     This binary translator will not translate the text to decimal, but it will translate it to a char! As example. 1101000 1101001 will be translated as 'hi'. You can also translate huge load of text. Have fun!

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 11 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

10/19/2005 3:26:35 AMMalachiX

Cool idea, it was easy to read, and it worked so 5 globes from me. It acheived the objective. The only little prob was a warning formt he compiler on line 18, a double was getting changed to an integer. I think you should of explicitly converted te value instead of relying on the compiler to guess for you.
(If this comment was disrespectful, please report it.)

 
10/31/2005 3:03:58 PMPhi

everything is fine but the code need a system("PAUSE") to display the message if the input file isn't the right path
(If this comment was disrespectful, please report it.)

 
11/2/2005 2:04:39 PMPeter Evers

I didn't do that because the code wouldn't be UNIX C++ comptatible any more.
(If this comment was disrespectful, please report it.)

 
11/14/2005 7:39:11 PMDustin Bowers

you can add teh system("PAUSE"); line and still keep UNIX C++ compatability by using the preprocessor directives #ifdef and #endif like this.
#ifdef _WIN32 system("PAUSE"); #endif
(If this comment was disrespectful, please report it.)

 
11/12/2008 5:36:41 AMhribek

nice code. though doing it with pow is little bit hard-core ;) i suggest learing about shift operators (<<,>>).
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.