got mmy C programming for absolute begginers. need ur advice
whiteoxe
Posts: 794
what now to download to learn the microsof c in vis studio or someting eles ?
i download ?
i download ?
Comments
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.
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.
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.)