0_0_20483686_13668.cpp:7:84: error: too many initializers for 'char [10]'
char num[10]={"zero","one","two","three","four","five","six","seven","eight","nine"};
^
0_0_20483686_13668.cpp: In function 'int search(char*)':
0_0_20483686_13668.cpp:14:30: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
if(strcmp(ch,num[i])==0)
^
In file included from 0_0_20483686_13668.cpp:3:0:
GCC4.9.2/x86_64-w64-mingw32/include/string.h:53:15: note: initializing argument 2 of 'int strcmp(const char*, const char*)'
int __cdecl strcmp(const char *_Str1,const char *_Str2);
^
|