View Poll Results: Well?

Voters
21. You may not vote on this poll
  • <XXX.h>

    5 23.81%
  • <XXX>

    14 66.67%
  • Ought to use <XXX> but I use <XXX.h> out of habit

    2 9.52%
  • C headers

    0 0%

<XXX.h> or just <XXX>?

This is a discussion on <XXX.h> or just <XXX>? within the C++ Programming forums, part of the General Programming Boards category; Which headers ought to be used? Which is practical?...

  1. #1
    Evil Member
    Join Date
    Jan 2002
    Posts
    638

    <XXX.h> or just <XXX>?

    Which headers ought to be used? Which is practical?

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    <XXX> should be used. These are the standard headers, and non-standard headers may not be supported in future versions of whatever compiler you're using.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    1

    Wink

    <xxxx> is only compatible in gui compilers as i have found out microsoft visual, borland 5.0 etc. they also except <xxxx.h>. so in these it would be poinless to use <xxxx.h>. If you compile your code on a number of different platforms and compilers like me then you would have to use <xxxx.h> so linux,bsd,cygnus, and 16bit old c++ compilers will be compatible with your code and not annoy you.

  4. #4
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Well this is now a moot point b/c my teacher told me to use only <xxx.h>. Thanks for the inputs tho.

Popular pages Recent additions subscribe to a feed

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