Search found 1 match

by belial
Fri Aug 11, 2006 9:58 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 58164

grrr... with this i got WA:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define NOTHING 0
#define PALYNDROME 2
#define MIRRORED 4
#define BOTH 6

void righttoleft(char *thestring)
{
int n = strlen(thestring);
char *temp = strdup(thestring);

while (n != 0)
*(thestring++) = temp ...

Go to advanced search