Rotating string

Hi,
I'm new with C++ and I've got a problem with making string from int. I've got this
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
VELKE_CISLO::VELKE_CISLO(const unsigned long int l) {
string opacne = "";
	int cislica = 0;
	if (l == 0){
		opacne = "0";
	}
	unsigned long int 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
Topic archived. No new replies allowed.