Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. I need help with a program

I need help with a program

Scheduled Pinned Locked Moved C#
data-structureshelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alex501
    wrote on last edited by
    #1

    I need to create code that goes through the array, and for each empty slot, allocate a Student object. You should assign the new object a Student ID number that is the same as the slot in the array (i.e., if slot #7 is blank, create a Student object with ID # 7). You should NOT destroy any existing Student objects How should I start this assignment.

    M C 2 Replies Last reply
    0
    • A Alex501

      I need to create code that goes through the array, and for each empty slot, allocate a Student object. You should assign the new object a Student ID number that is the same as the slot in the array (i.e., if slot #7 is blank, create a Student object with ID # 7). You should NOT destroy any existing Student objects How should I start this assignment.

      M Offline
      M Offline
      MarkB777
      wrote on last edited by
      #2

      Well you could start by reading about arrays. After reading through that article I would think your assignment would be a breeze. Mark.

      1 Reply Last reply
      0
      • A Alex501

        I need to create code that goes through the array, and for each empty slot, allocate a Student object. You should assign the new object a Student ID number that is the same as the slot in the array (i.e., if slot #7 is blank, create a Student object with ID # 7). You should NOT destroy any existing Student objects How should I start this assignment.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Honestly, if the material your teacher gave you doesn't give you a starting point, I'd approach some other students to work out if the problem is with you, or with the teacher. If the other students also don't know how to start, approach the teacher. If they do, then follow the advice given before, read your course materials, use google and then take a shot at it.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups