<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hola que tal.</DIV>
<DIV> </DIV>
<DIV>Tengo el siguiente código el cual me crea una confusión alarmante en las
líneas que marcaré a su empieze con >></DIV>
<DIV> </DIV>
<DIV>Sé que es una función lo que se declara, pero no entiendo los parámetros de
entrada a esta.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<META name=GENERATOR content="LibreOffice 3.4 (Win32)">
<META name=CREATED content=20111024;9105492>
<META name=CHANGED content=20111024;9124326>
<STYLE type=text/css>
<!--
@page { margin: 2cm }
p { margin-bottom: 0.21cm }
-->
</STYLE>
<DIV><FONT size=2 face="Microsoft Sans Serif">#include
<iostream></FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> </FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">class SimpleCat</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">{</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">public:</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">
SimpleCat();
// constructor</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">
SimpleCat(SimpleCat&); // copy
constructor</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">
~SimpleCat();
// destructor</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">};</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> </FONT></DIV>
<DIV><FONT size=2
face="Microsoft Sans Serif">SimpleCat::SimpleCat()</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">{</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> std::cout
<< "Simple Cat Constructor ...\n";</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">}</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> </FONT></DIV>
<DIV><FONT size=2
face="Microsoft Sans Serif">SimpleCat::SimpleCat(SimpleCat&)</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">{</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> std::cout
<< "Simple Cat Copy Constructor ...\n";</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">}</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> </FONT></DIV>
<DIV><FONT size=2
face="Microsoft Sans Serif">SimpleCat::~SimpleCat()</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">{</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> std::cout
<< "Simple Cat Destructor ...\n";</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">}</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> </FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">>> SimpleCat
FunctionOne(SimpleCat theCat);</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">>> SimpleCat*
FunctionTwo(SimpleCat *theCat);</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> </FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">int main()</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">{</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> std::cout
<< "Making a cat ...\n";</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> SimpleCat
Frisky;</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> std::cout
<< "Calling FunctionOne ...\n";</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">
FunctionOne(Frisky);</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> std::cout
<< "Calling FunctionTwo ...\n";</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">
FunctionTwo(&Frisky);</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> return
0;</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">}</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> </FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">// FunctionOne, passes by
value</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">SimpleCat FunctionOne(SimpleCat
theCat)</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">{</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> std::cout
<< "Function One. Returning ...\n";</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> return
theCat;</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">}</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> </FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">// functionTwo, passes by
reference</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">SimpleCat* FunctionTwo (SimpleCat
*theCat)</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">{</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> std::cout
<< "Function Two. Returning ...\n";</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif"> return theCat;
</FONT></DIV>
<DIV><FONT size=2 face="Microsoft Sans Serif">}</FONT></DIV>
<P style="MARGIN-BOTTOM: 0cm">Haber si me pueden iluminar un poco por favor.</P>
<P style="MARGIN-BOTTOM: 0cm">Muchas gracias.</P>
<P style="MARGIN-BOTTOM: 0cm"><BR><FONT color=#548dd4><FONT
face="Arial, sans-serif"><FONT size=2><I><B>Oscar Aparicio
Holgado</B></I></FONT></FONT></FONT><BR><FONT color=#e36c09><FONT
face="Tahoma, sans-serif"><FONT size=2>Administrador de
sistemas.</FONT></FONT></FONT></P></DIV></DIV></DIV></BODY></HTML>