我查看了那根音量指针是否在摆动。
I checked to see if the needle indicating volume was oscillating.
在main中,当从foo返回后,namestr实际上时一个摆动的指针,因为foo已经在返回前释放了那个内存。
In main, after returning from foo , namestr is actually a dangling pointer, because foo has freed that memory before returning.
列表1 .带有一个内存渗漏和一个不断摆动的指针的代码(mem_errors. c)。
Listing 1. Code with memory leak and dangling pointer (mem_errors.c).
它比山达基教漂亮的小型电子测量仪强那么一点也是一个用来拾取四周环境中的噪声信号然后让指针跟着摆动的小玩意。
It's little more than a fancy small-scale version of a Scientology e-meter, a gadget that picks up on noise in the environment and makes a needle on a dial wiggle.
显示在列表1中的代码展示了一个内存渗漏和一个不断摆动的指针。
The code shown in Listing 1 shows both a memory leak and a dangling pointer.
压力表上的指针甚至摆动到了红线外面。
The needle on a pressure gauge twitches ever further into the red.
然而,它是这两个函数的相互作用,利用一个全球性的指针变量叫做namestr,它会导致渗漏和不断摆动的指针。
However, it is the interaction of these two functions and using a global pointer variable called namestr that causes both the leak and the dangling pointer.
甘油填充使指针平滑摆动,这样就能保证在极端负载和强烈震动的情况下也能准确读数。
The glycerine filling provides smooth pointer motion, thus ensuring an accurate reading even under extreme load and strong vibration conditions.
水泵不吸水,压力表及真空表的指针在剧烈摆动。
Pump could not suction water. The fingers of pressure gauge and vacuum gauge swing acutely.
水泵不吸水,压力表及真空表的指针在剧烈摆动。
Pump could not suction water. The fingers of pressure gauge and vacuum gauge swing acutely.
应用推荐