Search found 1 match

by bobo2000
Fri Feb 01, 2008 12:05 am
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 19313

10018 - Reverse and Add

The judge keeps rejecting this. Please help I tried it with all test cases that i know :o //reverse a string string reverse(string original) { string reversed = original; char *orig = (char *) original.c_str(); char *rev = (char *) reversed.c_str(); while (*rev != '\0') *rev++; *rev--; while (*orig...

Go to advanced search