I have in fact encountered two somewhat different definition for the adjoint. This is the other one. When X and Y are norm spaces, we set
<br />
X^* := \{x^*:X\to\mathbb{C}\;|\; x^*\;\textrm{is continuous and linear}\}<br />
and similarly Y*. When T:X->Y is continuous linear mapping, we set
<br />
(T^* y^*)x = y^*(Tx),\quad\forall y^*\in Y^*,\; x\in X.<br />
Notice that this formula defines a linear mapping
<br />
(T^* y^*): X\to\mathbb{C},\quad (T^* y^*)\in X^*,<br />
and thus also a mapping
<br />
T^*: Y^*\to X^*.<br />
If we have a Hilbert space H, and a linear mapping T

->H, then strictly according to the previous definition, we have T*

*->H*. However, the dual of a Hilbert space is isometric to the space itself, so we can identify all vectors of H* as vectors of H, and let the action of x^*\in H^* be given with the inner product. So x^*(z) becomes replaced by (x|z), if the x^*\in X^* and x\in X assumed to be identified in the isometry. The previous condition then becomes
<br />
(T^* y|x) = (y|Tx),<br />
so the old formula, that you knew for matrices already, is obtained as a special case.
Then there is another definition, which deals with unbounded operators. If we have T:D(T)->H, with D(T)\subset H being some subspace, it is possible to give some definitions T^*:D(T^*)\to H so that the same inner product formula is still valid for some vectors, but this time the domain issue gets more difficult.