Current location - Loan Platform Complete Network - Foreign exchange account opening - Please write a macro definition SWAP(t, x, y) to exchange two parameters of type T.
Please write a macro definition SWAP(t, x, y) to exchange two parameters of type T.
This is a macro definition with parameters, equivalent to a function. Macro definition is actually to put the latter one (t = temptemp = x;; x = y; Y = temperature; )

What is added directly to the statement is just a replacement, which is done before compilation. . .