Thread: Searching Array of objects

  1. #16
    Registered User
    Join Date
    Apr 2010
    Posts
    38
    No, my fault, thanks for looking.

  2. #17
    Registered User
    Join Date
    Apr 2010
    Posts
    38
    White Flags,

    this better for the constructor?
    Code:
    Student::Student ()
    {      
              name = "stan";
             userid = "1234";  
              
    }

  3. #18
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Yes, I would say so. It is better than what you had before, while fulfilling the requirements.

  4. #19
    Registered User
    Join Date
    Apr 2010
    Posts
    38
    Thanks. I appreciate your time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 07-11-2008, 07:39 AM
  2. Class Template Trouble
    By pliang in forum C++ Programming
    Replies: 4
    Last Post: 04-21-2005, 04:15 AM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. array of objects?
    By *~*~*~* in forum C++ Programming
    Replies: 4
    Last Post: 05-31-2003, 05:57 PM
  5. Help with an Array
    By omalleys in forum C Programming
    Replies: 1
    Last Post: 07-01-2002, 08:31 AM