# include <stdio.h>
# include "math.h"
# include "stdlib.h"
# include "string.h"
int main ()
{
char text[1000],chartext[1000],numtext[1000];
int result,a,b;
printf (" "" WELCOME ""\r\nEnter your Expression ^_^ \r\n");
gets(text);
for( int i=0;i<20;i++)
{
if (text[i]=='+')
{
strcpy(chartext[i],text[i]);
}
if ((text[i]>=0)&&(text[i]<=9))
{
strcpy(numtext[i],text[i]);
}
}
strcat(numtext,chartext);
printf ("result is %d\r\n",numtext);
}
it gives that error
Error 3 error C2664: 'strcpy' : cannot convert parameter 1 from 'char' to 'char *'