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.

      

  • 相关阅读:
    Codeforces Global Round 7 题解 (ABCDE)
    猫树 简单介绍
    pip模块
    协程
    多线程threading
    多进程multiprocessing
    DOM
    标签学习
    初步了解Bootstrap4
    初步了解jQuery
  • 原文地址:https://www.cnblogs.com/MakeView660/p/8442769.html
Copyright © 2011-2022 走看看