-
Guys,
I am programming a File Compressor program,
and I am stuck in something.
Do you know how can I teach the computer a new base?
Let's say, I wanna teach the computer a base which is over than 256, let's say, I wanna teach the comp the 1024 Base.
I have just 256 (actually 255) available symbols for the new base digits.
How can I teach the comp the 1024 digits base anyway?
Thanks, Lior, An Israeli Programmer.
-
Maybe use the Chinese alphabet? ;)
-
Dont laugh!
Man....
I am serious! do not make laugh of the topic!
I am really in trouble and I need to solve it.
Just shut up if you dont know how to answer my question.
Thats all, I hope my wish is not too big for ya.
-
no, seriously
Some computers allow you to use 16-bit language characters, such as japanese.
But the thing is, nobody gives a monkey's about your problem anymore because your such a jerk.
-
*Laughs more*
Hey lighten up!
If you're gonna be just plain rude noone's gonna help you.
(Actually I think there is a guy named noone :) )
-
Heh?!
Guys,
When should I laugh?! Now?! When exactly?!
-
yeah
shut up he was having a laugh.. if you want deadly serious people go somewhere else :)
and remember - LOL :)
-
Ok ok, everybody calm down.
No need to tell people to go away just because they couldn't answer you question, Jesus, taka a valium...
Anyway, Interesting problem, a few more details of what you are trying to do would be helpful!
Actually the Chinese alphabet was a good hint! a 16bit (double byte) system hold 65,000+ digits.
I would assume 10bits for a 1024 digit system, so if you have a clue about C in which everything is held in char arrays, hold everything in int arrays! there's an overhead sure but it means it's expandable up to 16 bit and it's in a nice easy format. you can kill the overhead when you save to disc (for compression)
One chr per Int, (null terminate them like C if it makes them easier to use) build a class and wor with there, data types that don't fit will have to be AND OR or XOR'd to fit the system.
without more details I can't help more... ie do you want to map to fonts, what sort of lookup were you thinking about? the more detailed the question the more detailed the answer
[Edited by Paul282 on 04-14-2000 at 10:26 AM]