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 aCan 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 parameterNamely to scanf_s (" % c ", & amp; G - & gt; V [I] 1);//a length parameter, 1 1 characters