this would be cool and proffesional...

This is a discussion on this would be cool and proffesional... within the C++ Programming forums, part of the General Programming Boards category; if we accessed the header file (iostream.h) could we change the funtion that displays stuff (cout) and cahnge it to ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    18

    this would be cool and proffesional...

    if we accessed the header file (iostream.h) could we change the funtion that displays stuff (cout) and cahnge it to (print) so some of us from the basic's could program easer in c++

    just a thought and i would like to know if it's possible

    ^.^
    The woundeful Joseph Goss,,,
    e-mail me "nerdyneo@hotmail.com"
    if you want
    Ermmm,,... hello anyone there?
    i am 15

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    um, you're strange.

    Why not just write a wrapper instead. Or a macro.

    #define PRINT cout

    Although I find this weird and repulsive. Have fun though
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    twm
    twm is offline
    root
    Join Date
    Sep 2003
    Posts
    232
    It might be cool for you, but not for people that don't understand your changes. And it's way not professional since if you want BASIC, use BASIC, not some bastardized C++.
    The information given in this message is known to work on FreeBSD 4.8 STABLE.
    *The above statement is false if I was too lazy to test it.*
    Please take note that I am not a technical writer, nor do I care to become one.
    If someone finds a mistake, gleaming error or typo, do me a favor...bite me.
    Don't assume that I'm ever entirely serious or entirely joking.

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    You shouldn't ever make changes to standard header files. Create your own headers that include the standard ones and customize to your heart's content from there. There is always the impulse to change the unfamiliar as a newbie, but you should temper that with the reasoning that, given sufficient time, the strangeness will wear off and evrything will begin to make sense. Then again, judging from your previous posts - maybe not.
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

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