Computing.Net > Forums > Programming > HTML Entity Encoder/Decoder

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

HTML Entity Encoder/Decoder

Reply to Message Icon

Name: Mechanix2Go
Date: August 28, 2005 at 04:50:52 Pacific
OS: w2k
CPU/Ram: PIII 933 / 256
Comment:

Dr Nick's HTML Entity Encoder/Decoder

I use Dr Nick's utility but still lose the indents.

Any ideas?

TIA

M2


If at first you don't succeed, you're about average.



Sponsored Link
Ads by Google

Response Number 1
Name: Dr. Nick
Date: August 28, 2005 at 13:58:34 Pacific
Reply:

Hmmm, not sure what the problem is. Are you using tabs or spaces for indents?

This uses tabs:

#include <stdio.h>

int a=10000,b,c=280000,d,e,f[280001],g;
    
void main()
{
    for(;b-c;)
        f[b++]=a/5;
    for(;d=0,g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a)
        for(b=c;d+=f[b]*a,f[b]=d%--g,d/=g--,--b;d*=b);
    return;
}

This uses spaces:

#include <stdio.h>

int a=10000,b,c=280000,d,e,f[280001],g;
    
void main()
{
for(;b-c;)
f[b++]=a/5;
for(;d=0,g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a)
for(b=c;d+=f[b]*a,f[b]=d%--g,d/=g--,--b;d*=b);
return;
}

If you use spaces, that must be the problem. I'll take a look at it when I can, however classes start tomorrow and the school's servers are always hammered the first few days beforehand. Can't log in right now, they may have disabled SSH during the registration rush.


0

Response Number 2
Name: Mechanix2Go
Date: August 28, 2005 at 21:59:52 Pacific
Reply:

Hi Dr Nick

spaces

ah, yes... labor day

new semester

new classes

more girls

wish I was young

M2


If at first you don't succeed, you're about average.


0

Response Number 3
Name: Dr. Nick
Date: August 29, 2005 at 00:09:11 Pacific
Reply:

More girls indeed :)

Sorry buddy... I'll try to date a few for you ;)


0

Response Number 4
Name: Mechanix2Go
Date: August 29, 2005 at 04:45:35 Pacific
Reply:

Make me proud

M2


If at first you don't succeed, you're about average.


0

Response Number 5
Name: XpUser
Date: August 29, 2005 at 06:16:03 Pacific
Reply:

Mech - Also stay out of trouble too :-)

i_XpUser


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: HTML Entity Encoder/Decoder

MOOOORE trouble with C#... :( www.computing.net/answers/programming/moooore-trouble-with-c-/12461.html

Get rid of the Code Posting Blues www.computing.net/answers/programming/get-rid-of-the-code-posting-blues/12290.html

MIDI events in VC++ www.computing.net/answers/programming/midi-events-in-vc/14777.html