Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8c3235d3a9145823ba5d2afd4eb05085a320c959 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

/* This is sample code to test the formatter */

class Complex {
private:
	float re;
	float im;
public:
	Complex(float re, float im) :
		re(re), im(im) {
	}
	float GetRe() {
		return re;
	}
	float GetIm() {
		return im;
	}
	void Set(float r, float i);
	/* Set real part */
	void SetRe(float r);
	/*
	 * Set imaginary part
	 */
	void SetIm(float i);
	void Print();
};

Back to the top