Incompatible pointer to character conversion

前端 未结 2 1663
失恋的感觉
失恋的感觉 2021-01-29 11:50

I\'m writing a program to write card values into a 52 spot character multi-dimensional array. This program is one test array that I will write as a function into the main progra

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-29 12:29

    You should #include and do something like this:

    case '0': strcpy(CardValue[i],"ACE");

    etc. Also note, that CardValue[i]; has no effect at all. You should also remove CardValue[i][6]=i;, I don't really know what you meant by that, but it surely should not be there.

提交回复
热议问题