Comment on Tutorial - Reverse a String in C++ By Grant Braught



Comment Added by : gavin

Comment Added at : 2013-02-21 12:31:29

Comment on Tutorial : Reverse a String in C++ By Grant Braught
You are using stl; why do it by hand? All you need is a one liner that uses a built in algorithm...

reverse(MyWord.begin(), MyWord.end());

that works as we can treats a string as a array of characters.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. The code is really helpfull...
reading or w

View Tutorial          By: sharda at 2010-03-11 03:28:02

2. can you gave us a sample form that has a design
View Tutorial          By: niknik at 2011-07-01 09:39:21

3. Clear explanation and clear architecture diagram..
View Tutorial          By: safiya begam at 2011-05-09 06:28:51

4. its giving exception
javax.comm.NoSuchPortE

View Tutorial          By: Dc at 2012-06-07 04:08:19

5. in tc not accept argument directly run and gave fi
View Tutorial          By: vishal vekariya at 2012-11-16 11:06:38

6. its very helpful and understandable.thanq
View Tutorial          By: Deepika darapaneni at 2012-03-24 14:16:39

7. when i trying to build the above program it is giv
View Tutorial          By: bhagyalaxmi at 2008-10-10 23:45:45

8. sir , i am new in j2me and i want to learn more s
View Tutorial          By: vipin Luhach at 2012-01-19 06:43:27

9. Good one ! and simple tutorial
View Tutorial          By: Sim at 2011-02-24 01:57:53

10. hi all i receive below error can any one help me p
View Tutorial          By: Purushothaman at 2009-04-03 17:38:42