Thread: What is this?

  1. #1
    Unregistered
    Guest

    What is this?

    i have this function:
    void f (Emp *p)
    {
    ...
    }

    what does the Emp mean? Is that a Type?

  2. #2
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    it's a custom data type i'd presume since 'emp' is not a keyword.
    hasafraggin shizigishin oppashigger...

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    It is probably a struct.

    typedef struct Emp
    {
    ...
    };


    Emp *p; //<-- A pointer to a struct of "Emp"-Type
    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