Page 1 of 1

Any Tips for Getting Started with Programming?

Posted: Thu Jun 07, 2007 5:34 am
by IEKnight
I'm reallllllllllllllly exited about the ReactOS project (counting the days 'til 0.3.3). :D

I'd love to get into some programming, but only know BASIC (not super fluent), and a touch of C.

Can anyone reccomend a good getting started guide for C programming (preferrably for humans)?

I'd really appreciat it!


1 month til 0.3.3

Re: Any Tips for Getting Started with Programming?

Posted: Thu Jun 07, 2007 6:10 am
by kevintrooper
dont you mean 0.3.2?

Posted: Thu Jun 07, 2007 6:24 am
by IEKnight
Nope - they've decided to skip 0.3.2 and stick to the release schedule. Read News, "Update on ReactOS Internals".

Anyway, any ideas on the Q?

Posted: Thu Jun 07, 2007 7:07 am
by Reacter
Google "Learn C programming language". That should launch you off. If you want to learn how to code ReactOS internals, I found some nice API guide stuff at http://msdn2.microsoft.com/en-us/library/aa383686.aspx. Good luck!

Posted: Thu Jun 07, 2007 7:23 am
by IEKnight
Cheers,

Any further help would also be appreciated.
(and by the way, I like the signature ==> Has inspired my own)

Posted: Fri Jun 08, 2007 1:04 am
by Reacter
Hehe... nice signature.

when you can read this, you are at least on your way:
#include <stdio.h>

int main()
{
int years = 0;
printf("Number of years: ");
scanf("%d", years);
printf("ReactOS is %d years old.", years);
return 0;
}

P.S. The only reason I changed my signature is because I just learned JS.

Posted: Fri Jun 08, 2007 8:19 am
by radu.bulboaca
Reacter wrote: #include <stdio.h>

int main()
{
int years = 0;
printf("Number of years: ");
scanf("%d", years);
printf("ReactOS is %d years old.", years);
return 0;
}
That should be

Code: Select all

     scanf("%d", &years); 
When you're calling scanf, you write a value at the address of the 'years' variable. That's what the & is for. A more detailed explanation here

Posted: Fri Jun 08, 2007 5:45 pm
by Reacter
No spell checker like a human... I always do that. :oops:

Posted: Sun Jun 10, 2007 7:42 pm
by radu.bulboaca
How do you think I caught it? I always do that.

I only corrected you because it was recommended to a beginner, and mistakes in examples are annoying as hell.

Posted: Mon Jul 23, 2007 4:06 pm
by Dirge
I see in the Beginning Development FAQ that assembly and C are used. I have learnt a little bit of Java and want to switch to a lower level language. Would it be wise to start learning C++ as its similar to C?

Posted: Mon Jul 23, 2007 6:06 pm
by Z98
C++ is perfectly fine. You just need to realize that memory allocation is a bit different in C++ than C.

Posted: Tue Jul 24, 2007 2:14 pm
by Dirge
Great thanks for the tip :)