Author Topic: C language  (Read 3054 times)

0 Members and 1 Guest are viewing this topic.

Offline JedTopic starter

  • Jr. Member
  • **
  • Posts: 25
  • Helpful? 0
C language
« on: July 01, 2009, 02:39:39 AM »
Does anyone know websites or means of learning C language? 

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: C language
« Reply #1 on: July 01, 2009, 03:05:12 AM »
one of the best ways of learning programming is to start off using other peoples code, learn what each line does, commands etc... and then venture onto modifying the code to do different things... and then eventually go onto making your own code. there are books out there, and free sites like this one http://www.cprogramming.com/tutorial/c/lesson1.html
Howdy

Offline GearMotion

  • Supreme Robot
  • *****
  • Posts: 489
  • Helpful? 24
  • Two decades+ of Embedded Design
    • CircuitGizmos
Re: C language
« Reply #2 on: July 01, 2009, 07:11:40 AM »
Does anyone know websites or means of learning C language?  

You might want to look into all of the "Arduino" stuff. This is C with microcontroller libraries using a free development environment. There is a lot of beginner information about Arduino that you can find on the web.

Offline jamort

  • Supreme Robot
  • *****
  • Posts: 375
  • Helpful? 2
Re: C language
« Reply #3 on: July 01, 2009, 07:29:39 AM »
the main thing to worry about with robotics in c for now would be learning all the loops and if statements some of the really simple stuff...
really in the matter of a weeks or two you should be able to program stuff on robots
my english teacher once said, "dont talk about what you dont know in public...."

so I replied the truth, " Exactly why I dont ever talk about English."

Offline kpmcgurk

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 3
  • Robot Love?
    • Probotic world (in progress)
Re: C language
« Reply #4 on: July 04, 2009, 11:46:25 AM »
I have to disagree with that a little. Although you should know all of the loops and such, it is hardest to learn  how to do all the initializations for ports and A2d/pull up resistors. I have found very brief tutorials on these kind of things, so it was hard to learn(mostly confusing). (and I don't want to pay 100 bucks for an AVR book when I have the internet to use ;) )

I may offer a bit of a different perspective on this one, as i started with computer programming before robotics, and the loops and such I already knew before robot programming.


anyway just my opinion
-Kpmcgurk

some people are just Born smart, but some people have to work for it, and those are the people who succeed.

http://www.proboticworld.com

Offline sonictj

  • Supreme Robot
  • *****
  • Posts: 416
  • Helpful? 11
    • Tim's Workshop
Re: C language
« Reply #5 on: July 04, 2009, 12:03:42 PM »
Quote
You might want to look into all of the "Arduino" stuff. This is C with microcontroller libraries using a free development environment. There is a lot of beginner information about Arduino that you can find on the web.

That is not entirely true Arduino is a great resource but the language is primarily c++.  Arduino has a ton of library's consisting of classes that are incompatible with the C language.  GearMotion is right, you can learn a ton from their code just realize some of it won't work with standard C.  C and C++ are very similar except for c++'s object oriented programming (classes etc.).
« Last Edit: July 04, 2009, 12:05:58 PM by sonictj »

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: C language
« Reply #6 on: July 04, 2009, 04:05:39 PM »
well, i have one more thing to add.
The best way to learn in practical, by actually doing it you learn it and how it works better.
well, this isn't the "best" way to remember things, the best is to teach someone else but its close enough...
Howdy

 

SMF spam blocked by CleanTalk