PineDominator Posted September 14, 2010 Share Posted September 14, 2010 I would like to start by thanking all of you. I have had a lot of success with the teensy so far. I am using the Arduino software and now feel it's time to switch to c/c++ because I feel I know there cut down c well enuff to put my time to better use by learning c++, as well as learning electronics. First I would like to purchase a really good book on c/c++. I have some experience in quckbasic, and now Arduino's version of c. I need to get a better understanding for object oriented programming. Second how do I go about changing my library's and sketches to c? is it mostly changing things like (int to uint8_t)? Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted September 14, 2010 Share Posted September 14, 2010 Book: How to program C Book: How to program C++ Those are both good books. One book I kind of refuse to want to pick up is the "Mastering C" book I have which is probably the size of a few Webster Dictionaries... Quote Link to comment Share on other sites More sharing options...
PineDominator Posted September 14, 2010 Author Share Posted September 14, 2010 Book: How to program C Book: How to program C++ is this the book? http://www.amazon.com/How-Program-7th-Paul-Deitel allso if it is would the 5th version be fine? thank you so much Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted September 14, 2010 Share Posted September 14, 2010 I think that book only covers C++, not sure but it's the same author as the others. They are all basically the same. http://www.amazon.com/How-Program-5th-Paul...3924&sr=1-3 That is the actual book I have. It first covered C then C++. It's a good intro to understand when you should use C and when C++ Quote Link to comment Share on other sites More sharing options...
Netshroud Posted September 14, 2010 Share Posted September 14, 2010 (edited) I found the best way is to dive in, and use Google for what you don't understand or what doesn't work. Especially for Objective-C, the Apple documentation is incredibly useful.... MSDN/.NET not so much. One thing I found useful that I only started doing a few months ago was to use source control - I personally recommend Git. That way if you completely screw up on something you can go back to your last commit, and can create a branch for something you don't fully understand yet, or isn't working 100% (I did that when I started learning Core Data.) Edited September 14, 2010 by Psychosis Quote Link to comment Share on other sites More sharing options...
Alias Posted September 14, 2010 Share Posted September 14, 2010 Beej's Guide to C Programming is a free book that is pretty good considering it's free. As for the non-free side of things I'd suggest 'Let us C' by Yashwant Kanetkar, it's how I got started learning C and I'm so glad I chose his book to help me. Quote Link to comment Share on other sites More sharing options...
Emeryth Posted September 14, 2010 Share Posted September 14, 2010 If you want to program your teensy in "true" C, look up AVR-GCC tutorials online, it's the most popular AVR C compiler, used by Arduino itself. You will also need to read the datasheet for the microcontroller thoroughly, it's an invaluable source of information. Quote Link to comment Share on other sites More sharing options...
PineDominator Posted September 15, 2010 Author Share Posted September 15, 2010 Thank you guys. I am going to take the google/online source for now since the book I want is too expensive right now. I also want to freshly learn c in it's OOP form c++. Already learned a lot on "Pointers", at first I didn't think I would ever take advantage of pointers but now I can think of a couple ways I would use them in a far in the future project. Quote Link to comment Share on other sites More sharing options...
Netshroud Posted September 15, 2010 Share Posted September 15, 2010 Trust me on this one - if you ever write anything remotely complex, you will be relying on pointers. Quote Link to comment Share on other sites More sharing options...
Trip Posted September 17, 2010 Share Posted September 17, 2010 (edited) c is beautiful :D ftw ... ajunta on ubuntu is pretty cool :D Edited September 17, 2010 by Trip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.