1、在 VS 中出现 const char * 类型的值不能用于初始化 char * 类型的实体 问题解决看下面的链接:https://blog.csdn.net/weixin_44690935/article/details/108502989.
2、‘strcpy’:此函数或变量可能不安全。考虑使用strcpy_s。要禁用弃用,请使用_CRT_SECURE_NO_WARNINGS。详情请参阅联机帮助。 所以要使用的话,就加上 _CRT_SECURE_NO_WARNINGS 这个宏。
或者 https://blog.csdn.net/BEAR__W/article/details/106237011?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164562910616781685352885%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=164562910616781685352885&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v1~rank_v31_ecpm-1-106237011.pc_search_insert_es_download&utm_term=strcpy%3A%E6%AD%A4%E5%87%BD%E6%95%B0%E6%88%96%E5%8F%98%E9%87%8F%E5%8F%AF%E8%83%BD%E4%B8%8D%E5%AE%89%E5%85%A8%E3%80%82%E8%80%83%E8%99%91%E4%BD%BF%E7%94%A8strcpy_s%E3%80%82%E8%A6%81%E7%A6%81%E7%94%A8%E5%BC%83%E7%94%A8%EF%BC%8C%E8%AF%B7%E4%BD%BF%E7%94%A8_CRT_SECURE_NO_WARNINGS%E3%80%82&spm=1018.2226.3001.4187.
|