计算机二级辅导:C 调试时查看数组内容计算机等级考试

文章作者 100test 发表时间 2010:01:01 13:05:10
来源 100Test.Com百考试题网


  Starting with Visual C version 6.0, it is now possible to expand an array pointer to view all array elements in the Visual C Debugger Watch window. This feature is not documented.

  从 Visual c 6.0 版开始,现在可以展开 Visual c 调试器监视窗口中查看所有数组元素的数组指针。 此功能未记录。

  In the Watch window, type an expression that evaluates to a pointer followed by a comma and the number of elements in the array.

  在监视窗口中键入一个表达式,该表达式计算为后跟一个逗号和数组中的元素数的指针。

  作为控制台应用程序生成下面的代码的调试版本。

  // Filename main.cpp

  // No compile option needed

  #include

  void main(void)

  {

  int * p.

  char* ptr = "Hello World".

  p = new int [10].

  for(int i=0. i


相关文章


一个有关随机函数rand()的小程序计算机等级考试
计算机二级:c 抽象类的简单示例计算机等级考试
c 抽象类的简单示例计算机等级考试
C 头文件重复定义问题的处理计算机等级考试
计算机二级辅导:C 调试时查看数组内容计算机等级考试
C 标准编程:虚函数与内联计算机等级考试
C 学习笔记:对话框2计算机等级考试
C 学习笔记:菜单计算机等级考试
C 学习笔记:对话框1计算机等级考试
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛