Making a header file(something I dont get)

This is a discussion on Making a header file(something I dont get) within the C++ Programming forums, part of the General Programming Boards category; wow this really helped...

  1. #16
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    wow this really helped
    Last edited by lilhawk2892; 08-29-2006 at 08:04 PM.

  2. #17
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,479
    I am glad we could help - remeber practise makes perfect.

    Once you get to understand how to create and link your own header files, you can organise
    large projects much better, and not have to bung all the code in the one file. This makes it much easier to maintain and organise, and of course, other people will be able to find functions. classes better.

  3. #18
    Registered User
    Join Date
    May 2006
    Posts
    17
    also,
    <stdio.h> and <iostream> are the c and c++ versions of console output. You probably only want to use one of those and not both.

  4. #19
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Or at least use the C++ namespace version, <cstdio>. (That applies for all the standard C header files, like <time.h> -> <ctime>.)
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Precompiled header question
    By donglee in forum C++ Programming
    Replies: 13
    Last Post: 01-22-2009, 12:23 AM
  2. IP header "total length" vs. packet size
    By MK27 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-04-2009, 06:45 AM
  3. class header confusion
    By te5la in forum C++ Programming
    Replies: 2
    Last Post: 07-22-2008, 02:39 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 08:40 PM
  5. Replies: 6
    Last Post: 04-02-2002, 04:46 AM

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