Shop OBEX P1 Docs P2 Docs Learn Events
got mmy C programming for absolute begginers. need ur advice — Parallax Forums

got mmy C programming for absolute begginers. need ur advice

whiteoxewhiteoxe Posts: 794
edited 2014-05-24 07:35 in General Discussion
what now to download to learn the microsof c in vis studio or someting eles ?


i download ?

Comments

  • Martin_HMartin_H Posts: 4,051
    edited 2014-05-22 20:34
    If you have a Propeller chip, then download the Simple IDE and Propgcc. There are probably instructions on the Activity bot tutorials:
    http://learn.parallax.com/activitybot

    Just write a hello world program and run it on the Propeller to get a feel for the work flow. Then write some CS-101 programs such as factoring a number, computing sieve of Eratosthenes, or parsing some text. Then when you want to use C with the Propeller you already know what to do.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-05-23 18:26
    If you downloaded the free version of MS Visual Studio I believe it comes with tutorials. Try them out as there are some really good projects in them, including IIRC, a web browser project.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-05-24 00:18
    Well, if you are going with Linux, you should use GCC instead of Microsoft C. It may also be best to go with GCC if you want to cross-compile to the Propeller or other microcontrollers. (Do you want to program a Raspberry Pi in Linux? that is GCC.)

    Here is the GCC manual...
    http://gcc.gnu.org/onlinedocs/

    AS usual, there is the Microsoft way of doing things, and the Unix/Linux world way of doing things. And since C originated within Bell Labs for Unix, there is a lot of free and useful code in the Unix/Linux world with documentation.

    It is really up to you. Much depends on if you want to compile code for your native OS (and that happens to be Windows), or just want to cross-compile to devices that support GCC.
  • whiteoxewhiteoxe Posts: 794
    edited 2014-05-24 01:08
    Im using a pretty simple C IDE, same one i have installed in both linux and win 7. Got some pretty good tutorials working in both. Just preparing to play with an arduino still in its package.
  • bill190bill190 Posts: 769
    edited 2014-05-24 07:35
    "C" is not "C"! (You see?)

    What I mean is that a C program for the Propeller will look quite different from a C program for another microcontroller or a C program for a Windows computer!

    The BEST thing to do is find a sample C program for the hardware you are working with (Propeller?), then learn to compile that and get it to work. That alone can be a BIG challenge!

    After that, *modify* the program a bit at a time and see what happens!

    So if you have a sample program which makes an LED blink at a certain rate, maybe change the program a little so the LED blinks faster or slower. Or only blinks 5 times, then stops.

    Or if a C program on a computer and it says "Hello World!", change it to say "Hello World! It is me!" (Or whatever.)
Sign In or Register to comment.