Results 1 to 8 of 8

Programming...

This is a discussion on Programming... within the Off Topic forums, part of the Entertainment category; I just don't understand it and it's pissing me off. Anyone here a good programmer that can give advice how ...
Page: 1


  1. #1
    Senior Member knox09's Avatar
    Join Date
    Feb 2007
    Location
    Not there!
    Posts
    485

    Default Programming...

    I just don't understand it and it's pissing me off. Anyone here a good programmer that can give advice how you learned it? I am learning C++ (second semester of it) and i just do not understand how arrays work. I think i may drop the idea of programming unless a lightbulb turns on or something.

  2. #2
    Banned Senior Member
    Join Date
    Mar 2006
    Location
    Israel
    Posts
    2,943

    Default

    Well , we had a really good teacher that explained everything really well.
    But the best thing you can do is try and write programs in your C++ and play with them until you get what you want.
    Arrays are pretty easy to be honest , things get touger when you study recursion , and dynamic ways to store data ( List , Queue etc )

  3. #3
    From the beginning Senior Member EG4L's Avatar
    Join Date
    Mar 2006
    Location
    England
    Posts
    2,119

    Default

    Is going from python language to C++ going to be really hard? We're doing python in computing because apparently it's easiest to be taught and quickest to learn, but I wanna develop..

  4. #4
    evilwevel
    Guest

    Default

    arrays are quite easy to understand.

    one dimensional array :

    [1]
    [2]
    [3]

    basically just values in a sequence (can be anything. values, objects, instances)

    two dimensional array :

    [1] [2] [3]
    [4] [5] [6]
    [7] [8] [9]

    values in a grid.

    adding values or reading them is quite simple as well, for a 1D array you just write 1 for loop like so :

    Code:
    for (int i = 0; i < 3; i++)
    {
    nameofthearray[i] = i;
    }
    2D arrays are a bit harder :

    Code:
    for (int row = 0; row < 3; row++)
    {
    for (int column = 0; column < 3; column++)
    {
    nameofthearray[row][column] = row + column;
    }
    }
    this is all in C#, but i'm sure C++ is almost the same (in fact most languages are).

  5. #5
    Uzu
    Uzu is offline
    Senior Member Uzu's Avatar
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    1,407

    Default

    If you don't have the oppurtunity to learn informatics in school, you better should visit a class.

    If you don't have the money for a class, find some e-buddies who can teach you if they'd like to.

  6. #6
    Problem? Senior Member RavouS's Avatar
    Join Date
    Apr 2006
    Location
    Denmark
    Posts
    420

    Default

    I am trying to learn C++ in my spare time and I'm using Learn C++ -.
    I think it's really well explained and there's a lot of good stuff there. It's a good place to check up if you can't remember some things and all

  7. #7
    Senior Member ChaosFactor's Avatar
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    332

    Default

    "hands on lab c++"

    seach that on google

  8. #8
    Senior Member knox09's Avatar
    Join Date
    Feb 2007
    Location
    Not there!
    Posts
    485

    Default

    Thank you all for the advice, i will give it a go. My problem isnt with the concept as much as coding. Ill just keep practicing and reading that website

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •