VS: How to Solve strcpy() Error

This is because Microsoft considers the strcpy() function unsafe.

Solution: add at the beginning of the code

#define _CRT_SECURE_NO_WARNINGS 

You can use it.

Read More: