c
文章平均质量分 52
写一个很难解的BUG
这个作者很懒,什么都没留下…
展开
-
vs code c++配置
* 假设你的vs code已经安装完成,假设g++.exe已经安装完成并且已经在系统PATH中(可以通过命令行在任意目录运行)* 然后在vscode的插件页面找到c++插件,在C/C++ extension tutorials per compiler and platform提示下面能找到链接:Get Started with C++ and Mingw-w64 in Visual Studio Code通过该链接的操作可以完成配置 1)菜单File -> Open Fold...原创 2021-07-28 17:01:10 · 192 阅读 · 0 评论 -
数组名 和 数组指针是不一样的
数组名 和 数组指针是不一样的,今天遇到这样一道题 int a[] = {1,2,3,4}; int *p = (int*)(&a + 1); printf("%d/n",*(p-1));求输出结果 ?//////////////////////输出结果4//////////////////VC6.0测试a 与 &a 的异同相同点(int)a == (int)&a原创 2009-11-12 19:23:00 · 299 阅读 · 0 评论