给出下列程序的输出结果
#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;
}
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服