#include <default.c> STRING *sBin = ""; void Dec2Bin(int n) { if (!n) {return; }else{ Dec2Bin(n/2); str_cat_num(sBin,"%.0f",n%2); } } void main() { int iDec = 11; Dec2Bin(iDec); printf("%s", _chr(sBin)); }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de