VELKE_CISLO::VELKE_CISLO(constunsignedlongint l) {
string opacne = "";
int cislica = 0;
if (l == 0){
opacne = "0";
}
unsignedlongint s = l;
while (s > 0){
cislica = s % 10;
switch (cislica){
case 0:
opacne += "0";
break;
case 1:
opacne += "1";
break;
case 2:
opacne += "2";
break;
case 3:
opacne += "3";
break;
case 4:
opacne += "4";
break;
case 5:
opacne += "5";
break;
case 6:
opacne += "6";
break;
case 7:
opacne += "7";
break;
case 8:
opacne += "8";
break;
case 9:
opacne += "9";
break;
}
s /= 10;
}
But now I have number in string in reverse and I need to rotate it. Can someone help me? I cant use system functions to do this. Thanks and sorry for my english