相关代码 |
|
//arg.cpp // Illustrate the use of each of the complex friend functions. #include // This also includes iostream.h. #include void main(void) { complex z(3.1, 4.2); cout cout cout cout double mag = sqrt(norm(z)); double ang = arg(z); cout cout cout cout cout getch(); }
相关资源 |
|