728x90
Visual studio 에서 buffer overflow 를 방지하기 위해 gets() 사용이 불가하다.
사용하고 싶다면 Project 우클릭 후 속성(properties) 의 옵션을 변경하자.
속성(properties) - 구성 속성(Configuration properties) - C/C++ - 고급(advanced) - compile option - change Compile As value to Compile as C Code (/TC)
stackoverflow.com/questions/32283650/gets-function-is-not-available-in-visual-studio-2015-community
'C' 카테고리의 다른 글
[C] Error "const char *" 형식의 값을 사용하여 "char *" 형식의 엔터티를 초기화할 수 없습니다. (0) | 2020.11.17 |
---|---|
c언어 stl이란? (0) | 2020.11.06 |
C언어 using namespace std(표준 네임스페이스) (0) | 2020.11.05 |
[C언어] 삼항연산자(조건연산자) ?: (0) | 2020.11.05 |
[C언어] scanf \n 마지막 공백문자 안받기 (0) | 2020.11.05 |