Boy are these cboard types ever tough! You are not far from being close to getting what you want though.
Normally I think you should refer to an array as an array and not a vector, but anyway, lets take a look at your code, indented and with the necessary includes:
Code:
#include <stdio.h>
#include <string.h>
int main()
{
clrscr(); // what's this and why is it here?
char str[200],str1[200];
int len;
int i;
int j;
for(int i=1; i<=10; i++){ // you already declared i as an int
printf("\nEnter your nickname:");
gets( str[i]); //gets requires a string buffer; str[X] is a single character
len=strlen(str);
for ( i=0,j=len-1;i<len;i++,j--)
str1[i]=str[j];
str1[i]='\0';
puts(str1);
getch(); } // not a standard C command and unneccessary anyway
}
Now something that can be compiled and might bring you closer to your goal:
Code:
#include <stdio.h>
#include <string.h>
int main()
{
char str[200],str1[200];
int len, i, j;
for (i=1; i<=10; i++){
printf("\nEnter your nickname:");
gets(str);
len=strlen(str);
for ( i=0,j=len-1;i<len;i++,j--)
str1[i]=str[j];
str1[i]='\0';
puts(str1);
}
}
This just does the same thing ten times. It doesn't accumulated anything in str; for that you probably need another string buffer:
Code:
#include <stdio.h>
#include <string.h>
int main()
{
char buffer[20],str[200],str1[200];
int len, i, j;
for (i=1; i<=10; i++){
printf("\nEnter your nickname:");
gets(buffer);
if (i>1) strcat(str,buffer);
else strcpy(str,buffer);
len=strlen(str);
for ( i=0,j=len-1;i<len;i++,j--)
str1[i]=str[j];
str1[i]='\0';
puts(str1);
}
}