|
-
November 6th, 2011, 08:27 AM
#4
Re: allocating and deallocating
 Originally Posted by Aashi
it complies, takes input and then program crashes.
I know, but i want to use this for learning.
Part of learning how to program is to know how to debug your own code. Just writing code and then dumping it here waiting for us to debug it is not the way you learn how to write a program. You must make the effort to debug your own code. You wrote it, you must be able to debug it.
please tell how can i make my program working? it crashes after taking input.
Can you at the very least identify which line causes the crash? Once you figure out which line it crashes on, look at that line and learn what could have happened. Use the debugger that comes with your compiler to step through the program.
Regards,
Paul McKenzie
Last edited by Paul McKenzie; November 6th, 2011 at 08:31 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|