New to Programming the Propeller? Want to learn to Program in C?
gennarobasso81
Posts: 84
Hello Everyone,
Although I am not so new to this website or forum, I am fairly new to programming the propeller. I have had one college class on programming in C++ and would like to start a learning thread on programming in C.
If anyone is interested in learning with me, I will post a programming problem on here (hopefully weekly) and after a few days I will post my code.
If anyone is interested in this, please feel free to post anything you'd like related to learning to program. I will be trying to follow my classroom learning syllabus and using the learn.parallax website.
Although I am not so new to this website or forum, I am fairly new to programming the propeller. I have had one college class on programming in C++ and would like to start a learning thread on programming in C.
If anyone is interested in learning with me, I will post a programming problem on here (hopefully weekly) and after a few days I will post my code.
If anyone is interested in this, please feel free to post anything you'd like related to learning to program. I will be trying to follow my classroom learning syllabus and using the learn.parallax website.
Comments
I wish you a lot of success with this project and hopefully you can get more people involved with programming their Propellers with C.
As for advice, I would suggest to anyone wanting to learn C to first become familiar with the syntax of C, then become familiar with the IDE that you will be using, and finally study the libraries that are available, so that you can learn what functions are available and where these functions reside. And when I say study the libraries, I am not simply referring to documentation, I am also talking about opening the related *.h files and looking at the function declations, followed by studying the defintions of these functions within the related *.c files. By doing so, you become very aware of the tools at your disposal.
Write a program that reads in the radius of a circle and prints the circle's diameter, circumference, and area.
* NOTE: The formulas for computing the circumference and area of a circle are:
C = 2Pr
A= Pr^2
P = Pi ~ 3.14159 I believe pi is a reserved word
r = radius
For inputs: http://learn.parallax.com/propeller-c-start-simple/get-values-terminal
For floating math: http://learn.parallax.com/propeller-c-start-simple/floating-point-math
http://www.cplusplus.com/doc/tutorial/control/
http://david.zemon.name/PropWare/md_CXXCrashCourse.html