Originariamente inviato da gianky93
cmq la correzione del mio codece qualcuno la sa?????Codice PHP://
// Compiled and tested with:
// i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
//
// Compile command:
// $ g++ -Wall -ansi -pedantic main.cpp
//
#include <iostream>
#define inversion(x,y,m) do {(m)=(x); (x)=(y); (y)=(m);} while (0)
using namespace std;
int main ()
{
float x = 2.3;
float y = 9.2;
float m= 4.7;
inversion (x,y,m);
cout << x << endl ;
cout << y <<endl;
cout << m <<endl;
// system("PAUSE");
return 0;
}

Rispondi quotando