Home > Back-end >  The great spirit to solve
The great spirit to solve

Time:10-01

# include
Int main () {
int a=0;
Printf (" please enter your age: ");
The scanf (" % d ", & amp; A);
Printf (" your age is % d ", a);
return 0;
}

How to solve this code error:
Severity code shows the project file line prohibits display status
C4996 'the scanf' : This function or variable may be unsafe. Consider using scanf_s home. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See the online help for details.

CodePudding user response:

Scanf_s

It's the rule of vs.

What seems to be enhanced security

CodePudding user response:

The
reference 1 floor? Victor.?? Response:
scanf_s

It's the rule of vs.

What seems to be enhanced security

Brother, how to solve

CodePudding user response:

The scanf

Change

scanf_s

CodePudding user response:

The
reference 3 floor? Victor.?? Response:
the scanf

Change

Scanf_s

Thank you, solved
  • Related