Hi guys. I have one problem with if statement.
That if always fails and i cannot understand why? Hope you can help me...Code:char MorzeLetters[20][6]; for(int i=0; i<letter; i++) { char temp[6]; strcpy_s(temp, 6, "-.--"); strcpy_s(MorzeLetters[i], 6, "-.--"); if(MorzeLetters[i] == temp) strcat_s(result, 256, "y"); }
BTW i'm trying to write morze alphabet interpreter and in original code MorzeLetters will be set from string. This is just an example of my problem.




Reply With Quote