Searching Array of objects

This is a discussion on Searching Array of objects within the C++ Programming forums, part of the General Programming Boards category; No, my fault, thanks for looking....

  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
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,706
    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.

Page 2 of 2 FirstFirst 12
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

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