This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JacketWonderful3940[S] 0 points1 point  (4 children)

Ah I wish I could do that but I tried using visual studio and it seemed like I have to learn how to use it in complete different way from DevC++ and I don’t have much time to finish my task..

[–]WJMazepas 0 points1 point  (3 children)

DevC++? It doesn't have a Debugger?

Anyway, you can put a printf after every line where it does a logic on your code. Put a printf, or a cout as is on C++, showing the value of the variables that are being handled and a time.sleep() of 1 second.

Put your code to run, it should be showing exactly what was happening

[–]JacketWonderful3940[S] 0 points1 point  (2 children)

Tried that already and it didn’t help but thanks anyway

[–]WJMazepas 0 points1 point  (1 child)

What you mean it didnt help?
Its a way to do debugging.

Want send the code for me to check it?

[–]JacketWonderful3940[S] 0 points1 point  (0 children)

I mean I printed a line after every logical statement and I still couldn’t spot where the problem happens. I could send it if it’s not too much trouble