Author Topic: How to start  (Read 1771 times)

Sifright

  • Hydlaa Resident
  • *
  • Posts: 156
    • View Profile
How to start
« on: December 03, 2003, 08:15:22 pm »
Well i want to learn too code but i cant go to university yet (im 16) so ya know i am wondering how to do this i have a feeling learning C++ cant just be done off a website toturial just wondering if there are any books people can recomend for me to buy or indeed if there are any websites that can teach some basics ive tried modeling but i got fed up after 4 months when my models still came out looking like dog **** :p
plz dont bother posting if you have nothing relavent to say
(IE. I dont know good luck )

AendarCallenlasse

  • Veteran
  • *
  • Posts: 1312
    • View Profile
(No subject)
« Reply #1 on: December 03, 2003, 08:34:55 pm »
There are tons of good books out there that will teach you to program in C++.  I don\'t know off-hand which books are the best, but if you really want to learn buy books and just keep practice by yourself.  Also some colleges will offer summer classes for high school students.  You\'d have to pay for them but if you are really serious about you should check if any near you offer them.  I taught myself Java from just reading books and working on it by myself before taking C++, and they are very similar.

Only n00bs don't quote themselves...
<Aendar>...

Sifright

  • Hydlaa Resident
  • *
  • Posts: 156
    • View Profile
(No subject)
« Reply #2 on: December 03, 2003, 08:58:54 pm »
Hmm well i am seroius about learning to code but dedicated to it well i dunno about that lol the reason i want to make sure tehre are no websites that contain those books is cause those books cost like ?30!! tis alot for me :p well if i have to resort to a book i will

Edit: Wooohoo i have found a website to teach me the basics
  // Program to add 3 numbers;
        // File: Ch2Prg1.cpp

        #include

        void main()
        // Purpose: To add 3 numbers and output the sum
        // Receives: NONE
        // Returns:  NONE

        {      
             int value1;
             int value2;
             int value3;
             int sum;

             cout << \"Please enter your first integer value \";
             cin >> value1;

             cout << \"Please enter your second integer value \";
             cin >> value2;

             cout << \"Please enter your third integer value \";
             cin >> value3;

             sum = value1 + value2 + value3;
             cout << \"The sum is: \" << sum << endl;
        }
if any 1 wants me to explain that i can :D ive learnt how to get a program to accept variables  integers
i am intrigued its alot like html but much more complex :)
« Last Edit: December 03, 2003, 09:04:29 pm by Sifright »

tangerine

  • Hydlaa Resident
  • *
  • Posts: 192
    • View Profile
(No subject)
« Reply #3 on: December 03, 2003, 09:17:18 pm »
Have you already used any programming language before ? (no, I don\'t mean HTML) If not then pick some easier language first, Python or Java maybe. Buy some book for beginners. Here are some online books (not for beginners) http://mindview.net/Books

Moogie

  • Forum Legend
  • *
  • Posts: 4551
  • Artist/Flash Animator
    • View Profile
(No subject)
« Reply #4 on: December 03, 2003, 09:20:54 pm »
Void Main() = This is the main part of the script or code. It\'s the base, if you will... you can have procedures within the Main code, but there\'s nothing outside Main itself (except global declarations and include files).

Text prefixed with // are comments. These are ignored by the program and appear purely to describe things to the programmer.

{ (an open bracket) tells the program that a new procedure is starting. All code that follows a { and ends with a } is one procedure and is generally not affected by other procedures.

\"int\" means Integer. This forces the program to believe that the value is numeric only.

\"sum\" is a mathematical instruction. It explains itself, really. ;)

\"cout\" is a text output. It\'s what the program is saying to you. Similarly, \"cin\" is an input. In your example code, your text input (which can only be a number, according to the \"int\" ) is being designated as \"Value1\" so that the program can easily distinguish between it and other items.

sum = value1 + value2 + value3; This line is an instruction to the program. It is telling it to add up the three values based on what you input for each of them.

The last line of code is the final instruction given to the program. It tells the program: \"Say \'The sum is\', then say the value of the \'sum\' line, and that\'s all.\"

Finally, this procedure is closed with a }.



My terminology might not be perfect here, but I hope it helps a little. :)

Sifright

  • Hydlaa Resident
  • *
  • Posts: 156
    • View Profile
(No subject)
« Reply #5 on: December 03, 2003, 09:28:17 pm »
i havent used program langs before but  html is some what simular :P in that are several features that are the same athough i admit html is no where near near as complex. im getting micro soft visual studio for my compiler full version all 16 cds of it :o im fairly seroius in learning this but i will prolly adavace fairly slowly haveing school work and such it must come first

Edit : mogura do you by any chance know how to code or did you work that out?? :O
« Last Edit: December 03, 2003, 09:29:24 pm by Sifright »

Moogie

  • Forum Legend
  • *
  • Posts: 4551
  • Artist/Flash Animator
    • View Profile
(No subject)
« Reply #6 on: December 03, 2003, 09:30:40 pm »
I\'ve learnt VB in college, this isn\'t very different. :) Of course, half of it is logic anyway.

lynx_lupo

  • Veteran
  • *
  • Posts: 1431
  • Sorbus aria!
    • View Profile
    • Linux pri nas
(No subject)
« Reply #7 on: December 03, 2003, 09:31:03 pm »
1. I\'d definetly start with sth else, like scripting languages or the visua studio-like ones(you have real grafic output, yay).
2. Moogie, I think your post was irrelevant.
Quote
if any 1 wants me to explain that i can

That\'s the way I see it.
"Amor sceleratus habendi"- Ovid
"First they ignore you, then they laugh at you, then they fight you, then you eat them." -Godzilla

Sifright

  • Hydlaa Resident
  • *
  • Posts: 156
    • View Profile
(No subject)
« Reply #8 on: December 03, 2003, 09:44:24 pm »
bah bugger a scripting lang no offense but i would rather learn somthing i can put to real practical use Ie coding a game or somthing later on when i get profecient with it  and as for moguras post its good it helped me a little after all i learnt how to do that and what it does but it does help clarfiy somthing firstly the { } i didnt under stand what those where for but now i do you could write a program to run multipule precedures and each procedsure is independant am i right??

Moogie

  • Forum Legend
  • *
  • Posts: 4551
  • Artist/Flash Animator
    • View Profile
(No subject)
« Reply #9 on: December 03, 2003, 09:49:24 pm »
Apologies- I\'m tired, thought he said \"any 1 want to explain that to me\", hehe. :)

Sifright: These languages are what all programs are made of. PS itself uses alot of C++.

I\'m not sure I can really explain the { } symbols properly, so I think I should leave that to someone else. :) Don\'t want to confuse you.

lynx_lupo

  • Veteran
  • *
  • Posts: 1431
  • Sorbus aria!
    • View Profile
    • Linux pri nas
(No subject)
« Reply #10 on: December 03, 2003, 09:52:09 pm »
yes. But you can do games with scriptin langs...even HTML and just a taste of javascript can throw up sth good.

{} in many langs these dont exist, but you have if...end if or if...fi  words to end loops and such.

I started seriously with Visual Studio, visual basic.

edit: nice coincidence. b) you don\'t have to apologize.
« Last Edit: December 03, 2003, 09:53:17 pm by lynx_lupo »
"Amor sceleratus habendi"- Ovid
"First they ignore you, then they laugh at you, then they fight you, then you eat them." -Godzilla

Sifright

  • Hydlaa Resident
  • *
  • Posts: 156
    • View Profile
(No subject)
« Reply #11 on: December 03, 2003, 09:54:31 pm »
Mogura i knew that allready :) most things ae coded with c++ at least on Pc\'s not sure about macintosh etc but any who if Plane shift is open source is there any way i cold have a look at the source code??
i tought my self html by looking at the source for each page of a website and experimenting just wondering if its possible to do the same :P

Keldorn

  • Hydlaa Notable
  • *
  • Posts: 818
    • View Profile
(No subject)
« Reply #12 on: December 03, 2003, 09:55:03 pm »
Quote
Originally posted by Sifright
             int value1;
             int value2;
             int value3;
             int sum;

just a small note really, you don\'t have to declare every variable by starting a new int, you can just as easily use a comma (ex, int v1, v2, v3, sum; )
« Last Edit: December 03, 2003, 10:03:59 pm by Keldorn »
m.vanes

Moogie

  • Forum Legend
  • *
  • Posts: 4551
  • Artist/Flash Animator
    • View Profile
(No subject)
« Reply #13 on: December 03, 2003, 10:00:22 pm »
The full source code is available from Sourceforge. Or you can download the most up-to-date version of the game from CVS.

*doesn\'t have direct links right now*

Dagothur

  • Traveller
  • *
  • Posts: 22
    • View Profile
(No subject)
« Reply #14 on: December 04, 2003, 02:21:22 am »
i took a beginners C++ in highschool and now im in college level java, it gets funner the more we dive into things. i would like to learn html though so i could totally design my own websites!

If anyone could help me out that would be incredible!