Author Topic: Trying to Learn C  (Read 1748 times)

0 Members and 1 Guest are viewing this topic.

Offline Traitor4000

  • Knight
  • **
  • Posts: 191
  • Cookies: 8
    • View Profile
Trying to Learn C
« on: November 06, 2013, 03:18:21 am »
Ok so I have been learning C from a book called C A Modern Approach however im having some trouble. I got up to Chapter 6 no problem but after that writing these small pointless programs got a little boring actually really boring. I have literally taken an unhealthy two week break. So... how do you get motivated to push through and do those exercises and projects?
« Last Edit: November 06, 2013, 03:18:45 am by Traitor4000 »
The most vulnerable part of an impenetrable system is those who believe it to be so.

Offline ArkPhaze

  • Peasant
  • *
  • Posts: 136
  • Cookies: 20
  • null terminated
    • View Profile
Re: Trying to Learn C
« Reply #1 on: November 06, 2013, 03:53:58 am »
You can't just read a book, write the code they ask you to write, and learn C, or any programming language that way for that matter. You'd get tired of it, as you are now, and that is, or would be normal for most people. You have to try experimenting with the concepts on your own. Try creating interesting things with the concepts you learned, then move to the next project within that book perhaps. That book isn't going to teach you everything about C, so I don't see any harm in using external resources and experimenting while you're going through that book.
sig=: ArkPhaze

[ J/ASM/.NET/C/C++ - Software Engineer ]

Offline rasenove

  • Baron
  • ****
  • Posts: 950
  • Cookies: 53
  • ಠ_ಠ
    • View Profile
Re: Trying to Learn C
« Reply #2 on: November 06, 2013, 05:09:22 am »
It is common that people start getting bored of the little programs they make for educational purposes. But in future you'll be writing these small programs and use them together to create something useful. Now, what can get you're motivation going again? Well, try http://www.cprogramming.com/cgi-bin/source/source.cgi this has some games some projects lots of functions etc source code of C & C++ . Try to really go through them and understand each line of code. If you don't understand something, Google it, still don't get it? ask here. This should inspire you to get back to you're studies.
Apart from that, search for more source codes and lurk around some blogs to finde something interesting.
Good luck.
My secrets have secrets...

Offline I_Learning_I

  • Knight
  • **
  • Posts: 267
  • Cookies: 26
  • Nor black or white, not even grey. What hat am I?
    • View Profile
    • Hacking F0r Fr33
Re: Trying to Learn C
« Reply #3 on: November 06, 2013, 02:37:57 pm »
I have to say I never got bored, but then again I never learn a language just to know it, I believe in learning what you want, either because you're curious or because you need to or want to or any other reason you might have.
So every time I was learning a new language I was constantly comparing it to other languages, or I would actually want to make something using that language, so I never really got to be bored.

Whenever I was bored of coding because it started being too "repetitive" I would just check other stuff I could do with it (learn the next step or pick the step you just learned and take it to a new level, implementing it into something bigger) or code in another language.

I guess it depends on why you're learning it, why are you?
Thanks for reading,
I_Learning_I

Offline Raavgo

  • Peasant
  • *
  • Posts: 88
  • Cookies: 12
  • On my way from a n00b to a PRO
    • View Profile
Re: Trying to Learn C
« Reply #4 on: November 06, 2013, 03:13:17 pm »
I know it is hard to learn a new coding language if you don't have tasks to use this particular coding language.
There is a Coding challenge here, where you get points for your source code:http://coderbyte.com/CodingArea/Challenges/
You can choose the language you want to code in and you can code directly on the website.
« Last Edit: November 06, 2013, 03:13:28 pm by Raavgo »

Offline Xires

  • Noob Eater
  • Administrator
  • Knight
  • *
  • Posts: 379
  • Cookies: 149
    • View Profile
    • Feed The Trolls - Xires
Re: Trying to Learn C
« Reply #5 on: November 06, 2013, 04:25:09 pm »
ArkPhaze is absolutely right.  A book alone, or even a set of books, will not teach you everything about C.  And whilst you could learn some of the syntax and commonly used pieces of the standard library, you're unlikely to learn to put them together in creative ways from the book itself.  You need to experiment.  In the same manner, educational facilities never teach programming adequately; the assumption is that you're passionate enough about it to experiment & learn on your own.
-Xires

Offline ArkPhaze

  • Peasant
  • *
  • Posts: 136
  • Cookies: 20
  • null terminated
    • View Profile
Re: Trying to Learn C
« Reply #6 on: November 07, 2013, 12:51:42 am »
Something that I think you may enjoy, is trying out some Project Euler questions. Write some solutions to those problems in C. Even try some other challenges out there like past Google CodeJam programming questions perhaps.
sig=: ArkPhaze

[ J/ASM/.NET/C/C++ - Software Engineer ]