abraxas334
April 20th, 2009, 08:13 PM
Hello,
trying to tranlsate a ++ program into Java. I came across this line and i was wondering there is something similar like div_t in java.
#include <stdio.h>
#include <stdlib.h>
int main ()
{
div_t divresult;
divresult = div (28, 5);
printf ("28 / 5 = %d ( %d", divresult.quot, divresult.rem);
return 0;
}
thanks
trying to tranlsate a ++ program into Java. I came across this line and i was wondering there is something similar like div_t in java.
#include <stdio.h>
#include <stdlib.h>
int main ()
{
div_t divresult;
divresult = div (28, 5);
printf ("28 / 5 = %d ( %d", divresult.quot, divresult.rem);
return 0;
}
thanks