/*fecha: 01/03/2012 p1
determinar las salidas del siguiente programa
*/
#include<iostream>
using namespace std;
//---------------------------------------
void subprograma1()
{
int x=-5,y=-10,z=-20;
cout << "2- x=" <<x<<" y="<<y<<" z="<<z<<endl;
}
void subprograma2(int x, int y, int z)
{
x=-5,y=-10,z=-20;
cout << "3- x=" <<x<<" y="<<y<<" z="<<z<<endl;
}
void subprograma3(int& x, int& y, int z)
{
x=-5,y=-10,z=-20;
cout << "5- x=" <<x<<" y="<<y<<" z="<<z<<endl;
}
int subprograma4(int& x, int& y, int z)
{
x=10,y=20,z=30;
cout << "6- x=" <<x<<" y="<<y<<" z="<<z<<endl;
return z;
}
int main()
{//inicio main
system ("color 1F");
int x=5,y=10,z=20;
cout << "1- x= " << x << " y= " << y <<endl;
z=x+y;
cout << "1- z= " << z <<endl;
subprograma1();
subprograma2(x,y,z);
cout << "4- x=" <<x<<" y="<<y<<" z="<<z<<endl;
subprograma3(x,y,z);
cout << "6- x=" <<x<<" y="<<y<<" z="<<z<<endl;
x=subprograma4(x,y,z);
cout << "7- x=" <<x<<" y="<<y<<" z="<<z<<endl;
system ("pause");
return 0;
}//fin main
-¿Has visto al abogado?
-¿Qué abogado?
-El que tengo aquí colgado JAJAJA!
-¡POR DIOS!
-¡JAJAJA!
-¿DESDE CUANDO TIENES ESE CADAVER AHÍ PACO?
Si algo implantaron los fascistas fue la dictadura de la estupidez. Asesinaron sin parar a todo tipo de gente de la cultura y se encargaron de mantener años y años la España profunda, de pandereta y casposa a más no poder. Así estamos ahora, rodeados de chonis, kanis, modernos y toda clase de fauna que te mira raro si lees o te planteas las cosas. El fascismo implantó esa dictadura de pandereta y el capitalismo supo darle buen relevo, pues un pueblo ignorante jamás podrá ser libre. Pablo Hasel Ensslin