![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
Destin055
这个作者很懒,什么都没留下…
展开
-
c++中指针和数组名的关系& const修饰指针的三种情况
1.c++中数组和指针的关系由于数组变量就是指针,因此也可将用于指针的解除引用运算符(*)用于数组。同样,可将数组运算符([])用于指针;#include <iostream>using namespace std;int main(){ const int ARRAY_LEN=5; int MyNumbers[ARRAY_LEN]={22,2,3,45,6};...原创 2019-06-13 14:32:55 · 302 阅读 · 0 评论 -
c++ 字符串 操作 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead.
代码如下,显示错误 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.#includ...原创 2019-08-07 16:26:43 · 1456 阅读 · 0 评论