Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
Yesideez
Ivan
Send A Message
Rating
Not
Rated
Please login to rate source codes.

Click here to register a free account with us.
General Details
C++
Posted 3.44 Years Ago
592 Views
Received 0 Ratings
More Codes By This Author
Hex Dumper
Harvester
Dynamic Palette Ripper (U...
Depth of Field Calculator
Simple but highly effecti...

Hex Dumper


Description
My very first program - written as a programming exercise plus MS-DOS doesn't seem to have a program that does this - have missed the ability to dump files in hex.

Takes the name of the file direct from the command line.
Technical
Written and compiled using MSVC 2008 Express Edition (Windows)
Source Code
Comments
Please login to post comments.
 
Uranium-239     Posted 3.29 Years Ago
 
 
You should use the isprint() function to detect whether a charachter is printable or
not.

http://www.mkssoftware.com/docs/man3/isprint.3.asp

Also why did you make those variables global?

----
printf("HexDumper v1.00 by Yesideez (13-Dec-2008)\n\n");
printf("USAGE: %s <filename>\n",argv[0]);
----

Code like this is bad, it requires two function calls when the code could be done
quite simply using one.

----
printf(
"HexDumper v1.00 by Yesideez (13-Dec-2008)\n\n"
"USAGE: %s <filename>\n",argv[0]
);
----

You won't save much file space or execution time, but you will save some, and
I argue why not?
Page 1 of 1
More "C++" Source Codes By This Author
Recently Posted "C++" Source Codes
Recently Rated "C++" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
Why do you get bored with programming?

Not enough time to do something productive
I run out of ideas
Too hard to show people my creations
Everything i do has too many errors, and it's too hard
I don't get bored!!!


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved