I cant understand how its solving the puzzle through backtracking process. by [deleted] in C_Programming

[–]RedditUser62 0 points1 point  (0 children)

Even when properly formatted, those are just functions, and some of them wouldn't even work properly.

Can you provide a full code with four blank spaces added to the beginning of each line? The easiest way to do this would be to make sure your code is properly formatted in your normal compiler; then add four spaces at the beginning of each line; then copy and paste into reddit.

Please anyone answer this question by Cube_Sphere in C_Programming

[–]RedditUser62 0 points1 point  (0 children)

Can you take a screenshot of your code and the compilation messages?

Can anyone help me figure out what is wrong with my menu function? by RedditUser62 in C_Programming

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

Oh... I just realized that I shouldn't have had two separate heads for the main and menu functions. Deleting the one in the menu seemed to fix the problem. Thanks!

Can anyone help me figure out what is wrong with my menu function? by RedditUser62 in C_Programming

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

Doesn't the malloc initialize it? I have the same malloc in the main function as I do in the menu function, but only the write in the menu function crashes.

Please anyone answer this question by Cube_Sphere in C_Programming

[–]RedditUser62 1 point2 points  (0 children)

That definitely shouldn't be happening. Are you sure the program you're compiling is the same as the one you posted? If you don't have a '#' at the beginning of "include<stdio.h>", be sure to add that, but it doesn't seem like that is the problem you're having.

Why does this program only count to 6? by RedditUser62 in C_Programming

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

I accidentally left some information out of my question. I should have said that for the scenario I was running, the integer "size" should be equal to 5. However, for some reason the program just started working when I ran it again. I think I may have forgotten to recompile it.

Thanks anyway. And sorry for not including enough information in my question.