I am a junior computer science major, I took the first part of C++ and I made an A, now I am taking the second part ( function, arrays and up...).
I am getting very frustrated and I feel that I am falling behind, I feel like I hate writing codes because I get stuck or I don't know how to continue. this make me hate programming, I have never programmed before, I am a newbie and It really stressed and depressed me sometimes. I feel like I am not following up enough.
I tried to search for books that maybe will make it so easier for me to understand the topics of c++ the easy way(dummies)
I dont know if anybody went through this situation and was able to succeed, because this is my goal, I want to love and enjoy writing code and have fun with it, not dislike and hate it.
Please advice me of what I should do?
PS: the books that I rent are : c++ how to program, c++ from the ground up, Object oriented programming robert lafore.
My programming skills I learned in my own time and at my own pace. I would recommend this for you except you're already in the class and you're a computer science major.
I recommend... for those having problems writing code... to write their program first in a psudo-code they can understand easily that's also vaguely C++-like, then debug your program fundamental structure before translating it to C++. See if adding this will help.
Also, for the syntax and formulation, I recommend keeping a set of snippets for beginners for repeating common tasks (loops, function declarations, pointer definitions, etc.). Eventually, writing these will become automatic, but until then...
Start with pseudo code to your favorite program then write a real program. Use some standard editor(like visual studio, slickedit, eclipse) and it will point out shred the copulation error occurs.
Try to change (mentally) those problems, with new challenges, and set the fixing or overcoming of those problems, as goals and achievements. When I first started and got stuck, I was just like you, then I learned to change that disappointment into the optimism of learning something new or at the very least to get the program working. If you have time for your assignments then taking breaks and coming back later may help you have a new way of looking at it.