[C++]complex with int type

#include 
#include 
using namespace std;
int main(void )
{
    complex< int> z(20, 200);
    cout << abs< int>(z) << endl;
    return 0;
}

According to the C++ ISO spec, §26.2/2:

The effect of instantiating the template complex for any type other than floatdouble or long double is unspecified.

转载于:https://www.cnblogs.com/aoaoblogs/archive/2012/06/20/2555725.html

你可能感兴趣的:([C++]complex with int type)