+ 1
error C2665: 'strcpy_s' : none of the 2 overloads could convert all the argument types.
I am facing a problem. When I use this function ; strcpy_s(str, Data) ;while coding the huffman tree; it shows an error : error C2665: 'strcpy_s' : none of the 2 overloads could convert all the argument types. Help with how to make this run??
3 Réponses
+ 1
strcpy accept 3 params: first is the output buffer (where you are coping), the second the max size of writing (usually the max size of output buffer) and third the input string (copied string)... Now, i see that you have missed a param in your posted code
+ 1
Thanks!
0
👍👍👍