Where can i learn how to code?

4bf3fcd3104b6bf33b4c3f1f1aa0bb58
0
Masurao90 101 Aug 17, 2006 at 03:51

Can anyone help me find somewhere to learn codes for programming?:wallbash:

15 Replies

Please log in or register to post a reply.

1b9c43e0a476e8990eead7dac98624f6
0
ShadowedSoldier 101 Aug 17, 2006 at 15:01

Ok i found one…Cprogramming.com

And the wiki of devmaster.net sucks it tells you almost nothing at least for me it does, it only tells you how to get stared rather than teaching you code from the hello world up to well all htt acomplicated stuff

6f0a333c785da81d479a0f58c2ccb203
0
monjardin 102 Aug 17, 2006 at 16:21

If the wiki is not up to your standards, then you can always help out by adding to it.

1b9c43e0a476e8990eead7dac98624f6
0
ShadowedSoldier 101 Aug 17, 2006 at 18:09

o rly i can do that…? then i will for the better of the devmaster community! Away i go!:cool2:

A9102969e779768e6f0b8cb87e864c94
0
dave_ 101 Aug 17, 2006 at 19:26

What areas are lacking?
You could always put stubs into the wiki of the areas you think we need. Then the community can fill in the sections

1b9c43e0a476e8990eead7dac98624f6
0
ShadowedSoldier 101 Aug 18, 2006 at 00:29

omg i wish you good luck man i just read a few of the tutorials that are giving on cprogramming.com are mind boggling and i think i have to go take a tylenol now…i think im sticking to 3d modeling mmaayyyybbbeee some C++ but thats it…How do you people learn that lol, im still looking for places to learn C and C++ so ill inform you on places i see

Cd577ee1cb56aa2ad5645b7daa0a2830
0
eddie 101 Aug 18, 2006 at 01:46

Programming is a very masochistic career choice. Incredibly enjoyable once you get going, but masochistic nonetheless. ;)

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Aug 18, 2006 at 02:52

Regarding the wiki, it’s a game development wiki, not intended to be a reference for C++ programming for the absolute beginner. The reason I posted the link was to try to give you an idea of how you can proceed by searching for the information you need by yourself…

1b9c43e0a476e8990eead7dac98624f6
0
ShadowedSoldier 101 Aug 18, 2006 at 03:15

\^\^ yes and i give thanks to you but what ‘ve been noticing abotu alot of these site for “absolute beginners” is that they have different ways of writing out the code for example
Thsi was from cprogramming.com

#include <iostream> using namespace std;
int main ()
{
cout<<“hey there or whatever it says”\n;
cin.get;
}

Now i dont get it because then on another site it says

#include <iostream>
using namespace std; int main ()
{
cout<<“HI”;
return 1;
}

See teh difference..Why is it different? I compiled and ran it but it just flashed on the screen and it didnt stay up, they both did the same thing but are made differently…WTF

A9102969e779768e6f0b8cb87e864c94
0
dave_ 101 Aug 18, 2006 at 09:58

I’d give up now if you can’t even spot the simple difference.

cin.get; [sic] vs return 1;

maybe thats the reason one disappears and the other stays
cin in the input stream ie it waits for some text to be entered.
return is the way you make a function pass a result.

if you ran both from the command line, the message would stay on the screen both have their uses.

8e9aaea714077ea62a0c7f81cfb7672a
0
Razor 101 Aug 18, 2006 at 10:23

@ShadowedSoldier

See teh difference..Why is it different?

Why aren’t all chairs identical? They all have the same purpose. How come you can get things in different colours? WTF man!

Ok, seriously now, there is no limit to the number of different ways you can solve a problem. Similarly, there is no limit to the number of ways you can write the same program.

And eddie, that’s pretty quote worthy!

1b9c43e0a476e8990eead7dac98624f6
0
ShadowedSoldier 101 Aug 19, 2006 at 03:39

Well i understand that but the window seems to only flash rather than stay up, im using Dev-C++ and it strangly doesnt stay open(this is a console project) it will just flash and then end itself…anyone know any code in order to stop that from happening becuase the return 0; seems to not work and dave you must understand im new at this, i havent the slightest clue what anything means or does

00000000000000000000000000000000
0
Anonymous Aug 19, 2006 at 06:01

It’s just that when the program ends, windows closes the window. If you ran the program from dos, instead of from windows or dev-cpp you would be able to see the result. cin.get(); waits for a key press, so that’s why that one stays open until you press enter or whatever (and I believe it should be a syntax error to not have the () there). It should also be a syntax error that the first one doesn’t return a value (but I’ve found mingw doesn’t mention this, which is a pain). And the second program should really return 0, not 1. In this case, returning anything other than 0 indicates there was an error. The thinking behind this is there are many ways to fail and only one way to succeed, so 0 means success and any other number is an error code.

The best solution to your problems is a better ide. If you’d like to stay with the same compiler (minGW) codeblocks is a good choice. Then in the project properties for a console application you could check the box “Pause when excecution ends”.

B4f1df29a8585ba1acaf96017c6ef61f
0
Loregoreth 101 Aug 21, 2006 at 23:18

If you want to learn C++ start here: http://www.cplusplus.com/doc/language/tutorial/

As you progress try making some things from scratch(sp?) like a caculator, Rock paper scissors etc.

7909d007b5190cecb7e549eb2adcaf11
0
Jeremy_Pridemore 101 May 27, 2007 at 00:19

@Reedbeta

Regarding the wiki, it’s a game development wiki, not intended to be a reference for C++ programming for the absolute beginner. The reason I posted the link was to try to give you an idea of how you can proceed by searching for the information you need by yourself…

I have a question, if someone wanted to work on creating beginner tutorials for how to use a language (C/C++ in my case) would that be unwanted? I tutor for my college, so I was thinking of creating my own C++ tutorial (Something to try to accumulate all of the knowledge I’ve gained from all the resources I have looked at personally) and I think it might be nice to be able to have something like that in steps on a wiki like that to point them to. If this is a purpose that the wiki was not meant for and should not fill, then I’ll gladly keep such tutorials off this. (If I am given the go-ahead to do this, it wouldn’t be like I could just fly off and fill up a full-fledged tutorial, just know that I can over time as time allows.)

EDIT: Just my 2 cents, but it might be nice to send those that the community considers “noobs” (or that profess themselves to be) to something like this. :)