M
MC felon
hello.
this is a very new-B question. But how do i copy one char in a string
to a char place in another string?
i tried this, but it signalled errors.
#include <whateverisrequired.h>
int main()
{
char out[100];
char str[100];
gets(str);
strcpy(out[1],str[5]);
return 0;
}
any help on this is really appreciated! (please note that i work on
TC++)
this is a very new-B question. But how do i copy one char in a string
to a char place in another string?
i tried this, but it signalled errors.
#include <whateverisrequired.h>
int main()
{
char out[100];
char str[100];
gets(str);
strcpy(out[1],str[5]);
return 0;
}
any help on this is really appreciated! (please note that i work on
TC++)