string array reversing...
We allready posted a topic for turning around an String.
But we are no experts, so we don't really understande the code that was posted....
We need a EASY programm for converting a string:
from (for example)
ABCD --> DCBA
We allready made this:
#include "..\ownh.h"
#include "..\stdio.h"
int main (void)
{
/* Input of String-array *
char mystring [21] ;
printf ("fill in a string: ");
scanf ("%s",mystring);
printf ("The string you entered is: %s\n",mystring);
/* Rotation of string */
while (waarde1 > 0)
{
printf ("Rotation: %s\n",mystring+waarde1);
waarde1 = waarde1--;
}
printf ("%s",uitk);
pause ();
return 0;
}
Now we have the problem that we cant select 1 sign from the string, but only from a sign.
So we want to select each string value, and then paste them together in reverse angle....
Please help us....
No difficult C++ code (or the "strrev" command)... only this simple problem...