Home > Back-end >  There is something wrong with vs2017 printf_s function...
There is something wrong with vs2017 printf_s function...

Time:09-24


A problem is the output printf output and loop position not ah,,,
One is the input to the adjacency matrix, store,,

CodePudding user response:

Using scanf_s input % c there will be a problem, what parameter as if to add a
Can turn off the compiler SDL inspection, directly through the scanf
The project properties, C/C + +, SDL check - no

CodePudding user response:

Scanf_s use % c, % s to specify length, that is, to a length parameter
Namely to scanf_s (" % c ", & amp; G - & gt; V [I] 1);//a length parameter, 1 1 characters
  • Related