回复:(死了都要C)LS怎么不把``ltoa(value,str,2);这...
呵呵,楼上的说得对,发得太急了,上面那里也有错误,我再重发一次吧.
#include "stdio.h"
#include"stdlib.h"
main()
{
char str[33];
long value;
printf("\nEnter a long number:");
scanf("%ld",&value);
ltoa(value,str,2);
printf("\nThe binary of %d is %s\n",value,str);
}