be more specific lah ... see if people can help you ....Originally posted by dark_snowboy:Stuck at one block of code from 7+ till now!
My teacher can do it why can't I
that c programming was fun mahOriginally posted by fudgester:I hate programming.
I remember taking a module in C programming in my very first semester in NUS.... and screwing it up.
congrats...Originally posted by dark_snowboy:used to it liao, doing this for 3years.
Removed one line of code and it worked wonders!
Kudos to the asp.net forum
I was actually doing it part by part, taking away codes, adding them in.Originally posted by eagle:congrats...
Tips for debugging (use for my programming, and always use for hacking games last time too):
Comment codes part by part... I call it divide and conquer... In this way, you will know roughly which part of the code gives you your error.
Within the error part, repeat the divide and conquer method... Do it recursively till you arrive at maybe a small part of the code which you can just read through easily...
you're not using visual studios then ...Originally posted by dark_snowboy:I was actually doing it part by part, taking away codes, adding them in.
Theres another method which uses the break point, I forget the command though .
Anyway thanks for da tip
I am, visual studio 2005Originally posted by Fatum:you're not using visual studios then ...
then you can set the breakpoints easily .... click on the line and watch for the red dots, and the go under debug > watch> you can look at the values of different parameters during runtime also ... when you F5 it, it goes into debug lot liao ...Originally posted by dark_snowboy:I am, visual studio 2005
Ok thanks for the updates.Originally posted by Fatum:then you can set the breakpoints easily .... click on the line and watch for the red dots, and the go under debug > watch> you can look at the values of different parameters during runtime also ... when you F5 it, it goes into debug lot liao ...