主观

给出下列程序的输出结果

#include ﹤iostream﹥

#include ﹤complex﹥

#include ﹤string﹥

using namespace std;

void main( )

{

complex ﹤int﹥ fs1 ( 5, 6) ;

complex ﹤float﹥ fs2( 7.5, 8.5) ;

string str1 ("real is:") ;

string str2 (" image is:") ;

cout﹤﹤ str1﹤﹤ fs1. real( )﹤﹤ ', ' ﹤﹤ str2﹤﹤ fs1. imag( ) ﹤﹤ endl;  cout﹤﹤ str1﹤﹤ fs2. real( ) ﹤﹤ ', '﹤﹤ str2﹤﹤ fs2. imag( ) ﹤﹤ endl;

}

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服