Hey really sorry i couldnt understand this line debugging printf statements to the code
how can go about that?
Thanks
|
Light Poster
|
|
| 6Apr2009,21:42 | #11 |
|
Mentor
|
![]() |
| 6Apr2009,22:32 | #12 |
|
Add a printf statement that prints something useful, e.g.
Code:
printf("Please enter a number: ");
char buf[32];
fgets(buf,30,stdin);
int n=atoi(buf);
printf("DEBUG: you entered %d\n",n);
Applying that to your program then, you might want to print the contents of the murder object immediately after it was brought back from the file. |

