error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Do it! C์ธ์ด ์
๋ฌธ ์ฑ
์ ํ์ตํ๋ ์ค, 270ํ์ด์ง์ ๋๋ฒ์งธ ์์ (๋ ๊ฐ์ ๋ฌธ์์ด ํฉ์น๊ธฐ)๋ฅผ ์งํํ๋ค๊ฐ ์ด๋ฌํ ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ค. strcpy์ strcat๊ฐ ์์ ํ์ง ์์ผ๋ ๋์ ํด์ strcpy_s, strcat_s๋ฅผ ์ฌ์ฉํ๊ฑฐ๋ _CRT_SECURE_NO_WARNINGS๋ฅผ ์
๋ ฅํ๋ผ๊ณ ํ๋ค. // ๋ ๊ฐ์ ๋ฌธ์์ด ํฉ์น๊ธฐ (strcpy, strcat) #define _CRT_SECURE_NO_WARNINGS // c4996์ค๋ฅ ํด๊ฒฐ์ ์ํด ์
๋ ฅํจ #include #include void main() { char data[10] = "abc"; char result[16]; strcpy(result, data); strcat(result, "def"); printf("%s + \"def\" = %s\n..