Dev C++ using header files?

This is a discussion on Dev C++ using header files? within the C++ Programming forums, part of the General Programming Boards category; I've created a header file for a class - " header.h " and a file with its member functions definitions ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    2

    Question Dev C++ using header files?

    I've created a header file for a class - "header.h"
    and a file with its member functions definitions - "headerImp.cpp" with the preprocessor directive "#include "header.h" " .

    In the program in which I am trying to use the class I included "#include "header.h" ", but I'm not having any luck...

    Could anyone explain, in simple terms, what steps I've missed, and need to take, in order to use a header file?


    Thanks.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,340
    Based on the information you've given, you haven't done anything wrong. Explain what you mean by "I'm not having any luck," including the exact error messages if any, and post the relevant code in [code][/code] tags.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    2
    Actually, I've figured it out.
    Thank you!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Confusion on header and source files
    By dnguyen1022 in forum C++ Programming
    Replies: 4
    Last Post: 01-17-2009, 02:42 AM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  4. more header files
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2001, 12:56 PM

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