c++ - VS 2008 : See the elements referred to pointer

标签 c++ visual-studio visual-c++ visual-c++-2008

这似乎是一个相当愚蠢的问题,但我创建了一个指向 double 组的指针:

double* tab = new double[10];

然后我填充 double 组,但是当我在 Debug模式下展开选项卡指针时,我只使用 *tab 给出第一个元素的值,这是正常的。但我如何看到其他元素呢?

谢谢

最佳答案

如果您在监 window 口中写入 tab,10 您会看到它就像一个 10 元素数组。

但要小心,因为这也可能会显示超出数组分配长度的内容。

关于c++ - VS 2008 : See the elements referred to pointer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3195379/

相关文章:

c++ - 场景图更新回调设计

c++ - 对于非重复项,最有效的标准容器是什么?

c++ - 此语法中的构造函数转换错误

c++ - 不与任何其他窗口应用程序共享客户区

c - 如何在 Windows 上的 sqlite3 中启用全文搜索

c++ - 为什么将全局变量和静态变量初始化为其默认值?

c++ - 错误代码 C2451 无法运行基本程序

c# - SqlException : Cannot open database <database> requested by the login. 登录失败

visual-studio - __CxxFrameHandler4 是什么,链接器错误 "unresolved external symbol __CxxFrameHandler4"究竟是什么意思?

c++ - 操作简单浪费时间?