ASSALAMO 3ALAYKOM
Sorry coz i m writing in english but i don't have an arabic keyboard right now !!
my prob is so simple for you (coz i m soooooooo fresh with C/C++ ) i creat a function that return an array of Chars
i want then convert the resulted Char Array to Int then print it into screen
the code of my function is :
char* ToBinary(int Number)
{
int Rest;
int i=0;
char Result[100];
//int NumberRest;
while (Number > 0)
{
Rest = fmod(Number,2);
Result = Rest;
Number = Number / 2;
i++;
}
return Result;
}thank you and sorry for my english



