I have used the Dev-C++ just a little time.Today,I write a very simple program trying to how to use the Debuger.In this process,I find the the color of the breakpoint will turn to blue if I delete the sentence (1) in the main().This should indicate the program has runed to the breakpoint. But if I reserve the sentence (1),the breakpoint' color will not change even I press the keyboard to input a data and this phenomenon certainly show the program has not executed to the breakpoint.
How to use the Debuger If my program have the I/O function such as scanf()?I have read the help in Dev-C++,but its information is so few.I can't find my answer in its help.
---Thanks,
Bruce.J
Here is my test program:
/* ********************************************* */
#include <stdio.h>
void test(int i)
{
printf("Debuging, i = %d\n", i); /* put a breakpoint in this line */
}
main()
{
int i;
scanf("%d", &i); /* sentence (1) */
test(i);
system("PAUSE");
}
---------------------------------
Do You Yahoo!?
嫌邮箱太小?雅虎电邮自助扩容! |