if(strcmp((argv[3][i]),"c")==0)
This line is wrong.
argv[3][i] is a character, not a string. You probably want :
if(argv[3][i]=='c')
4
solved compare argv[1][i] arrays C++ [closed]
if(strcmp((argv[3][i]),"c")==0)
This line is wrong.
argv[3][i] is a character, not a string. You probably want :
if(argv[3][i]=='c')
4
solved compare argv[1][i] arrays C++ [closed]