Answer the question
In order to leave comments, you need to log in
How to make scanf work?
When using scanf, it gives an error:
char str;
printf("qwe");
scanf("%s", &str);
return 0;
Ошибка 2 error C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. e:\decanat\consoleapplication15\consoleapplication15\consoleapplication15.cpp 11 1 ConsoleApplication15
#define _CRT_SECURE_NO_WARNINGS
Answer the question
In order to leave comments, you need to log in
Everything turned out to be easier - you need to disable SDL.
After adding nothing changes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question