scanf 구문 오류가 뜨네요

 

-----------------------------------------------------------

컴파일하고 있습니다...
과제.c
c:documents and settingsadministratormy documentsvisual studio 2008projects과제과제과제.c(7) : warning 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.
        c:program filesmicrosoft visual studio 9.0vcincludestdio.h(306) : 'scanf' 선언을 참조하십시오.

 

c:documents and settingsadministratormy documentsvisual studio 2008projects과제과제과제.c(9) : warning 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.
        c:program filesmicrosoft visual studio 9.0vcincludestdio.h(306) : 'scanf' 선언을 참조하십시오.

 

빌드 로그가 "file://c:Documents and SettingsAdministratorMy DocumentsVisual Studio 2008Projects과제과제DebugBuildLog.htm"에 저장되었습니다.
과제 - 오류: 0개, 경고: 2개
========== 빌드: 성공 1, 실패 0, 최신 0, 생략 0 ==========

 

scanf 선언문 보니까
_Check_return_ _CRT_INSECURE_DEPRECATE(scanf_s) _CRTIMP int __cdecl scanf(_In_z_ _Scanf_format_string_ const char * _Format, ...);

 

이거 던데...

profile

ㅎㅇㅎㅇ