![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 | |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
Quote:
I don't know what else is necessary... ![]()
__________________
-Steven "Is this a piece of your brain?" - Basil Fawlty |
|
|
|
|
|
|
#12 |
|
Programming Guru
![]() ![]() |
Stevengs, I understand that the data is represented in a vaster medium: ascii(256 types) vs. numbers (10 types).
But that's besides the point here... If we are talking about a single-method representation of data such as a word document, a number represents just as many bytes as a character does, 1. So if a compression program that was simply designed to take a document containing a large strand of numbers, and converted it to base 225. It would indeed be "compressed".
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges! Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download. |
|
|
|
|
|
#13 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Have you encountered the compressed reality of the term, "BS", versus the just plain ol' wasteful, "Bullshit"???
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#14 |
|
Programming Guru
![]() ![]() |
Pardon me?
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges! Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download. |
|
|
|
|
|
#15 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You are an intelligent young person. You are uninformed. That post intentionally has things regarding compression in it. Think about it. I am not intentionally denigrating you. If you'd like more detailed expressions, post back. If not, forget it.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers Last edited by DaWei; Dec 5th, 2005 at 7:06 PM. |
|
|
|
|
|
#16 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
![]()
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
|
#17 |
|
Hobbyist Programmer
Join Date: Oct 2005
Posts: 211
Rep Power: 4
![]() |
The summary of it is if 'saving' the number to pretty much anything other than a text file there is no 'compression' taking place
The binary sequence 0x0110 0100 can either be represented as: (character) : D (int) : 100 (hex int) : 64 the (int) type doesn't save any space over (char) unless you're talking screen space.... both are 8 bits in the memory map. I'm sure I added some confusion to this with my talks earlier... when using absurdly large numbers storing them in a 'standard' type isn't done, so I offered ways of doing it differently (than ascii strings or base 235 strings), with little regaurd to the original topic. bah... details -MBirchmeier |
|
|
|
|
|
#18 |
|
Expert Programmer
|
this is a project i did for school(using << hex << && << dec <<):
#include <iostream>
#include <stdlib.h>
#include <iomanip.h>
int main()
{
char capital,small;
for(capital='A',small='a';capital<='Z';capital++,small++)
{
cout << capital;
cout << hex << setw(10) << static_cast < int > (capital);
cout << dec << setw(10) << static_cast < int > (capital);
cout << " " << small;
cout << hex << setw(10) << static_cast < int > (small);
cout << dec << setw(10) << static_cast < int > (small) << endl;
}
return 0;
}seems to be easier then these other methods? (in opinion)
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|