Results 1 to 2 of 2

Thread: programming classes .h only or .h and .cpp?

  1. #1
    Member Newbie
    Join Date
    Jun 2009
    Posts
    47

    programming classes .h only or .h and .cpp?

    when programming a class in c++ is it better to make just a .h file containing the class or split it up in a .h and .cpp file?

    i would argue that making just a .h file is easier and more java-stylish.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Oct 2004
    Posts
    4,661

    Re: programming classes .h only or .h and .cpp?

    And this has what to do with OpenGL or even graphics exactly?

    Consult the C++ FAQ Lite.

Similar Threads

  1. Is OpenGL Programming Same as VRML Programming
    By grungefreak1 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 09-30-2008, 03:07 PM
  2. can we use Classes?
    By qasim1981 in forum OpenGL ES
    Replies: 1
    Last Post: 11-11-2004, 09:01 AM
  3. OpenGL classes & wrapper classes
    By biot023 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 06-04-2003, 08:10 AM
  4. classes
    By dirtmaster in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-15-2001, 05:34 AM
  5. C++ and Classes
    By drakaza in forum OpenGL: Advanced Coding
    Replies: 37
    Last Post: 09-22-2000, 02:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean