Thread: this would be cool and proffesional...

  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 "[email protected]"
    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
    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,708
    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:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed