zoukankan      html  css  js  c++  java
  • VC++ Debug显示指针所指的array内容

      If you expand a pointer and you only get a single item, just add ",n" to the entry in the watch window where n is the number of elements to expand.   

      For example, if you have a foo * pFoo pointing to an array of ten elements, put pFoo,10 in your watch window to see all of the element.

      This can be useful to view parts of a large array.

      If pFoo points to an array of 5,000 elements, you might use (pFoo + 2000),10 to see elements 2000 through 2009.

           总结:

      1、watch a particular range of <count> elements starting at the <offset> position (of course, array here is your actual object)

      (array + <offset>), <count>

      2、watch the entire array

      array, <count>

      示例:

      

      If you work with MFC and use the "array" containers from it, like CArray, CDWordArray, CStringArray, etc., you can of course apply the same filtering, except that you must watch the m_pData member of the array, which is the actual buffer holding the data.

      

  • 相关阅读:
    bzoj5328: [Sdoi2018]物理实验
    HDU
    bzoj4820: [Sdoi2017]硬币游戏
    bzoj4600: [Sdoi2016]硬币游戏
    阿里云配置防火墙规则
    博客园 添加 Live 2D 模型
    R语言做逻辑回归
    R语言错误的提示(中英文翻译)
    用随机森林分类
    python 切换虚拟环境
  • 原文地址:https://www.cnblogs.com/MakeView660/p/8442769.html
Copyright © 2011-2022 走看看