Shop OBEX P1 Docs P2 Docs Learn Events
New to Programming the Propeller? Want to learn to Program in C? — Parallax Forums

New to Programming the Propeller? Want to learn to Program in C?

gennarobasso81gennarobasso81 Posts: 84
edited 2015-03-12 13:02 in Propeller 1
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.

Comments

  • idbruceidbruce Posts: 6,197
    edited 2015-03-11 20:26
    gennarobasso81

    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.
  • gennarobasso81gennarobasso81 Posts: 84
    edited 2015-03-11 21:30
    First project:

    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
  • gennarobasso81gennarobasso81 Posts: 84
    edited 2015-03-11 22:58
    After I did this I went back and added a do..while loop. I wasn't able to find an example on parallax but here is a link

    http://www.cplusplus.com/doc/tutorial/control/
  • DavidZemonDavidZemon Posts: 2,973
    edited 2015-03-12 13:02
    A small page of quick-tips are available on PropWare's pages as well. I tried to make it as fast as possible to find various things such as the syntax for a do-while.
    http://david.zemon.name/PropWare/md_CXXCrashCourse.html
Sign In or Register to comment.