Jump to content


Where can i learn how to code?


15 replies to this topic

#1 Masurao90

    New Member

  • Members
  • Pip
  • 2 posts

Posted 17 August 2006 - 03:51 AM

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

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5309 posts
  • LocationSanta Clara, CA

Posted 17 August 2006 - 04:27 AM

http://www.devmaster...egory:Beginners
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 ShadowedSoldier

    Member

  • Members
  • PipPip
  • 30 posts

Posted 17 August 2006 - 03:01 PM

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
Posted Image
Posted Image

#4 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 17 August 2006 - 04:21 PM

If the wiki is not up to your standards, then you can always help out by adding to it.
monjardin's JwN Meter (1,2,3,4,5,6):
|----|----|----|----|----|----|----|----|----|----|
*

#5 ShadowedSoldier

    Member

  • Members
  • PipPip
  • 30 posts

Posted 17 August 2006 - 06:09 PM

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

#6 dave_

    Senior Member

  • Members
  • PipPipPipPip
  • 584 posts

Posted 17 August 2006 - 07:26 PM

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

#7 ShadowedSoldier

    Member

  • Members
  • PipPip
  • 30 posts

Posted 18 August 2006 - 12:29 AM

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
Posted Image
Posted Image

#8 eddie

    Senior Member

  • Members
  • PipPipPipPip
  • 751 posts

Posted 18 August 2006 - 01:46 AM

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

#9 Reedbeta

    DevMaster Staff

  • Administrators
  • 5309 posts
  • LocationSanta Clara, CA

Posted 18 August 2006 - 02:52 AM

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...
reedbeta.com - developer blog, OpenGL demos, and other projects

#10 ShadowedSoldier

    Member

  • Members
  • PipPip
  • 30 posts

Posted 18 August 2006 - 03:15 AM

^^ 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

Quote

#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

Quote

#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
Posted Image
Posted Image

#11 dave_

    Senior Member

  • Members
  • PipPipPipPip
  • 584 posts

Posted 18 August 2006 - 09:58 AM

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.

#12 Razor

    Member

  • Members
  • PipPip
  • 46 posts

Posted 18 August 2006 - 10:23 AM

ShadowedSoldier said:

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!

#13 ShadowedSoldier

    Member

  • Members
  • PipPip
  • 30 posts

Posted 19 August 2006 - 03:39 AM

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
Posted Image
Posted Image

#14 Guest_Unregistered_*

  • Guests

Posted 19 August 2006 - 06:01 AM

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".

#15 Loregoreth

    Member

  • Members
  • PipPip
  • 37 posts

Posted 21 August 2006 - 11:18 PM

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

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

#16 Jeremy Pridemore

    New Member

  • Members
  • Pip
  • 6 posts

Posted 27 May 2007 - 12:19 AM

Reedbeta said:

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. :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users