C++复数类

为什么80%的码农都做不了架构师?>>>   hot3.png


#include 
#include 
#include 

using namespace std;

struct st{
	int a, b;

} a[] ={{2,5},{4,8}};

void main(){
	complex num[]={complex(2,3),complex(3.5,4.5)};
	vector *> vnum(2);
	vnum[0]=&num[0];
	vnum[1]=&num[1];
	cout<real()<<","<imag()< cp(2);
	cp[0]=&a[0];
	cp[1]=&a[1];

	cout<a <<" ," <b<

 

转载于:https://my.oschina.net/saulc/blog/2239862

你可能感兴趣的:(C++复数类)