关于vc++2010调试的问题
- C/C++ code
#include"stdafx.h"#include<conio.h>#include<stdlib.h>typedef struct Node{ int elem; struct Node * next;}Node;void func(Node * N){ N->elem=1; N->next=(Node *)malloc(sizeof(struct Node)); ///运行到这步直接跳走了 N->next->elem=3; N->next->next=NULL;}int main(void){ Node N={0,NULL}; func(&N); getche(); return 0;}调试没问题,只是单步调试出现了问题,当我单步调试的时候运行到那一步时跳走了,跳出了一个文档,,怎么回事呢?代码应该没有问题啊
[解决办法]
F11会进入函数里面
遇到系统函数 走F10