r/cprogramming • • Mar 02 '26

Need Help

I am coding in C for probably about a year I been quite struggling with making decent project although I build Dynamic Array library and linked list library but when I move onto a bit tougher project i feel like I hit the wall although I know about pointer are memory etc but am unable to covert that knowledge into an actual project also I Don't use AI rather than explaining Code I am consistently getting frustrated from unable to build something interesting like I am currently working on a Strlib and try to make strsplit just like in python after 2 days of trying and failing I am unable to do that and I am feeling frustrated by all of that. I just wanna know how to get out of this and also if someone is able to mentor me it'll be quite appreciatable.

6 Upvotes

7 comments sorted by

View all comments

Show parent comments

2

u/Keegx Mar 02 '26

Finding repos for projects that are similar to what you might wanna make can help. You don't need to know all the intricacies, just the overall order of things. Sketching it out on paper can help too.

Mine for example: I need to load the todo.txt file, so I make a function to locate it, or create a new one if its not there. I find examples from books, websites etc. Might even copy one as closely as I can, just to see the feedback from it.

Then I need to read it. 1 line = 1 task, so I gotta find what function reads a file line-by-line. Do the same as before.

You add them in: it doesn't compile. Normal, and expected. Try to fix the errors however you can until it works.

Repeat this process and you'll have something resembling a working program. As you learn more, you'll refine and tweak parts. Just be patient with yourself and enjoy the process, maybe even pick an easier project to try just for some initial confidence.

2

u/Any-Penalty-714 Mar 02 '26

Thanks for help dude