Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

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.

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.

![]() |
![]() |
![]() |

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