Just like my previous reverse function I have a data file as:
+a
-b
-c
+d
-f
.
.
.
I want to write a function translate(data,0,2,4) which will output
-c
+d
+a
-b
-f
Any good string handling logics for this problem?
Just like my previous reverse function I have a data file as:
+a
-b
-c
+d
-f
.
.
.
I want to write a function translate(data,0,2,4) which will output
-c
+d
+a
-b
-f
Any good string handling logics for this problem?
I'm pretty sure there are. AngKar, can you please read a book though? You are not going to learn how to program this way. ... I don't like being mean, but it's important that you at least have some problem solving ability and a grasp of the programming language. EVERYONE is still learning, so if it's that, don't worry about that, but you have to keep trying.
you've already stated that you want to do this in 2 previous posts. why do you keep posting the same things? you can put it all in one post and go from there...no need to be post happy.
Registered Linux User #380033. Be counted: http://counter.li.org