Thread: Initializing array of class objects via loop

  1. #31
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    However I also recall reading, most likely Scott Meyers, that all functions should be member functions as far as possible
    Today, most experts think it is actually better to prefer non-member functions when ever possible. See this article for more information.

    Also it usually recommended to keep the User Interface as separate as possible so you can change the UI without affecting the program logic.


    Jim

  2. #32
    Registered User
    Join Date
    Mar 2016
    Posts
    203
    Many thanks, several learning points out of this thread. I appreciate your time very much.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Initializing an array within a class
    By Sijaan Hallak in forum C++ Programming
    Replies: 1
    Last Post: 12-28-2015, 02:53 PM
  2. Replies: 5
    Last Post: 01-06-2015, 09:04 AM
  3. Initializing a 3D array w/o a loop.
    By funkydude9 in forum C++ Programming
    Replies: 5
    Last Post: 03-04-2004, 11:20 PM
  4. Replies: 4
    Last Post: 10-16-2003, 11:26 AM
  5. syntax for initializing an array in a class
    By timberwolf5480 in forum C++ Programming
    Replies: 4
    Last Post: 10-14-2003, 08:03 AM

Tags for this Thread