Thread: Pointers

  1. #16
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374
    I agree with SamGuilliam,

    I was taught to call it #include<iostream.h>. And never once did I come across this #include<iostream> ... using namespace std. It's only being in these forums that it has been brought to my attention.

    However, it appears in order for those who are using Devshed, the second heading i.e. #include<iostream> using namespace std, is the only one which compiles without any errors.

    Sure enough #include<iostream.h> works, but it compiles with errors.

    If you are using Devshed Sam you should use the updated syntax.

    But yes I understand where you are coming from.

  2. #17
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Quite simply, <iostream.h> never was standard. So, if a given compiler had it, and it worked as expected, great. If not, oh well.

    Cheers
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  3. #18
    Registered User samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Newport
    Posts
    382
    Quote Originally Posted by Zach L.
    Quite simply, <iostream.h> never was standard. So, if a given compiler had it, and it worked as expected, great. If not, oh well.

    Cheers
    Then when they decided to standardise it, what possessed them to change it from what was the current convention?

    Anyhow, I'll continue to use it until I acquire a compiler that doesn't honour it...

  4. #19
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Further replies here.
    http://cboard.cprogramming.com/showthread.php?t=63625

    Please don't start new threads for questions which are basically a continuation of the same topic.

    > Please mail this back to my address: [email protected]
    This will get you nowhere fast, mostly, you'll just get ignored.
    If you really want email, tick the "please email me when replies are posted to my thread" checkbox in your user options.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using pointers to pointers
    By steve1_rm in forum C Programming
    Replies: 18
    Last Post: 05-29-2008, 05:59 AM
  2. function pointers
    By benhaldor in forum C Programming
    Replies: 4
    Last Post: 08-19-2007, 10:56 AM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 01:18 PM