Array

This is a discussion on Array within the C++ Programming forums, part of the General Programming Boards category; I am trying ti write a C++ function addArray to add a range of elements of an array from start ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    3

    Array

    I am trying ti write a C++ function addArray to add a range of elements of an array from start to end. Can anyone steer me in the correct direction?

  2. #2
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    for loop.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    3

    appreciation

    I know that we are not all brainers in the subject of C++. Actually I would like to become good at it soon. I do struggle! I appreciate all the encouragement and advice you have given me,
    John

  4. #4
    Disturbed Boy gustavosserra's Avatar
    Join Date
    Apr 2003
    Posts
    244
    But you have to try at least! Any basic C++ book teaches how to do it and a lot more!!! The suggestion of major_small should be enough.
    Nothing more to tell about me...
    Happy day =)

  5. #5
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    If that wasn't enough for you, I'm going to give you a couple pointers.

    1) STFW. Google is your best friend, or at least it should be.
    2) RTFM. Your compiler came with documentation for a reason. I'm also willing to bet that you have a programming book or two laying around, or you have access to one. If you don't, several can be found with the help of the first thing I said.
    3) Run a board search. Chances are strong that your question has been asked before. See the last two comments - you're going to have to read.
    4) Look around on this site. We put this stuff here for people like you.
    5) If you'd done any of the last five things, you likely would have found your way here, which is where we keep the information on looping.
    6) You would probably, however, do better to start here.
    7) And of course, the links to all these great tutorials can be found here
    8) Further tutorials can be found here.

    Have a nice day.
    Away.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 08:25 PM
  2. Replies: 6
    Last Post: 11-09-2006, 03:28 AM
  3. [question]Analyzing data in a two-dimensional array
    By burbose in forum C Programming
    Replies: 2
    Last Post: 06-13-2005, 08:31 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  5. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 08:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21