リリー
2005-09-14 21:22:27 UTC
$B$O$8$a$^$7$F!"(B
$B#J#a#v#a$N3X=,$r$7$F$$$k%j%j!<$H$b$&$7$^$9!#(B
$B#***@8l$N$h$&$K!"(B
$B0J2<$K<($9$h$&$J$3$H$r$7$?$$$N$G$9$,!"(B
$B#J#a#v#a$G$O$&$^$/$$$-$^$;$s!#!J5c(B
printf( "%04H\n", 31 );
$B#J#a#v#a$G!"0J2<$N%3!<%I$r<B9T$9$k$HNc30$,H/@8$7$F$7$^$$$^$9!#(B
$B!J(BFormatFlagsConversionMismatchException$B!K(B
System.out.printf( "%04H%n", 31 );
$B>e5-$r<B8=$5$;$k$?$a$K!"(B
$B0J2<$N$h$&$J%3!<%I$r=q$$$F$$$k$N$G$9$,!"(B
$B$3$s$J$3$H$7$J$$$H%@%a$J$N$G$7$g$&$+!)(B
finel int ACCURACY = 4;
int i = ACCURACY - Integer.toHexString( a ).length();
while( i-- > 0 ) System.out.print( "0" );
System.out.printf( "%H%n", a );
$B%9%^!<%H$JJ}K!$,$"$j$^$7$?$i$*$7$($F$/$@$5$$!#(B
$B$*$M$,$$$7$^$9!#(B
$B#J#a#v#a$N3X=,$r$7$F$$$k%j%j!<$H$b$&$7$^$9!#(B
$B#***@8l$N$h$&$K!"(B
$B0J2<$K<($9$h$&$J$3$H$r$7$?$$$N$G$9$,!"(B
$B#J#a#v#a$G$O$&$^$/$$$-$^$;$s!#!J5c(B
printf( "%04H\n", 31 );
$B#J#a#v#a$G!"0J2<$N%3!<%I$r<B9T$9$k$HNc30$,H/@8$7$F$7$^$$$^$9!#(B
$B!J(BFormatFlagsConversionMismatchException$B!K(B
System.out.printf( "%04H%n", 31 );
$B>e5-$r<B8=$5$;$k$?$a$K!"(B
$B0J2<$N$h$&$J%3!<%I$r=q$$$F$$$k$N$G$9$,!"(B
$B$3$s$J$3$H$7$J$$$H%@%a$J$N$G$7$g$&$+!)(B
finel int ACCURACY = 4;
int i = ACCURACY - Integer.toHexString( a ).length();
while( i-- > 0 ) System.out.print( "0" );
System.out.printf( "%H%n", a );
$B%9%^!<%H$JJ}K!$,$"$j$^$7$?$i$*$7$($F$/$@$5$$!#(B
$B$*$M$,$$$7$^$9!#(B
--
$B%j%j!<(B
$B%j%j!<(B