<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hola David,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>crea un proyecto de consola con el DEV-C++ en C++. 
Lo único que aparece en tu código que da un poco la lata por los includes y 
demas es cuando se muestra por pantalla.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=3><FONT face="Times New Roman"><FONT 
style="BACKGROUND-COLOR: #ffff99">Console::Write("Número de Cuenta");<BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">Console::Writeline(numCuenta);</SPAN></FONT><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">     </SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">Console::Write("Balance 
Actual");</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">Console::Writeln(currentBalance);</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=3><FONT face="Times New Roman"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">Modifica tus primeros includes por 
estos:</SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></FONT></FONT> </DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT size=3><FONT 
face="Times New Roman"><SPAN style="BACKGROUND-COLOR: rgb(255,255,153)">#include 
<iostream>    //Entrada/salida estándar</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">#include "TarjetaCredito.h"</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">using namespace 
std;    //Para ahorrarte el std:: al usar funciones de 
entrada/salida estándar. Más información en <A 
href="http://c.conclase.net/curso/index.php?cap=026">http://c.conclase.net/curso/index.php?cap=026</A></SPAN></FONT></FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT size=3><FONT 
face="Times New Roman"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></FONT></FONT></SPAN></FONT></FONT> </DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT size=3><FONT 
face="Times New Roman"><SPAN style="BACKGROUND-COLOR: rgb(255,255,153)">Y 
modifica tu función que muestra resultados 
por:</SPAN></FONT></FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT size=3><FONT 
face="Times New Roman"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></FONT></FONT></SPAN></FONT></FONT> </DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT size=3><FONT 
face="Times New Roman"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></FONT></FONT> </DIV>
<DIV><SPAN style="BACKGROUND-COLOR: rgb(255,255,153)">void 
TarjetaCredito::Resultados()</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">{</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">     cout 
<< "Número de Cuenta ";    //Más informació cout en <A 
href="http://c.conclase.net/curso/index.php?cap=903e#APD_cout">http://c.conclase.net/curso/index.php?cap=903e#APD_cout</A></SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">     cout 
<< numCuenta;</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">     </SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">     cout 
<< "Balance Actual ";</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">     cout 
<< currentBalance;</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">}<BR></SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"></DIV></SPAN></FONT></FONT>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></FONT></FONT> </DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">La declaración de la 
clase,</SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></FONT></FONT> </DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT face="Times New Roman" 
size=3>class TarjetaCredito<BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">{</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">      
public:</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">             
bool HacerCompra(double amount);</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">             
void Pagar(double amount);</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">             
void Resultados(); </SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">      
private:</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">              
long numCuenta;</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">              
double currentBalance;</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">              
double creditLimit;</SPAN><BR 
style="BACKGROUND-COLOR: rgb(255,255,153)"></FONT><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT face="Times New Roman" 
size=3>}</FONT></SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT face="Times New Roman" 
size=3></FONT></SPAN></SPAN></FONT></FONT> </DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT face="Times New Roman" 
size=3>Con esto ya debería funcionarte sin 
problemas.</FONT></SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face="Times New Roman" size=3><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></SPAN></FONT></FONT> </DIV>
<DIV><FONT><FONT face="Times New Roman" size=3><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">API como ya te dijeron son un montón 
de funciones, variables, estructura, macros, etc que te permiten programar cosas 
bastantes complejas dándote el código ya hecho. Por ejemplo el API de MS-Windows 
te permite hacer cosas así:</SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face="Times New Roman" size=3><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></SPAN></FONT></FONT> </DIV>
<DIV><FONT><FONT face="Times New Roman" size=3><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">Conectarte a una webcam que esté 
instalada en Windows, configurarla, grabar vídeo, imágenes, 
etc</SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face="Times New Roman" size=3><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">Crear interfaces gráficas de usuario 
bastante rápido.</SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face="Times New Roman" size=3><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">Un montón de funciones para graficar 
en pantalla, copiar el contenido de la pantalla en un .bmp, 
etc</SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face="Times New Roman" size=3><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">Usar el ratón en tus 
programas.</SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face="Times New Roman" size=3><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></SPAN></FONT></FONT> </DIV>
<DIV><FONT><FONT face="Times New Roman" size=3><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)">Puedes consultar el curso del API de 
MS-Windows en <A href="http://www.conclase.net">www.conclase.net</A>, ahí verás 
muchas más cosas que permite hacer.</SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT face="Times New Roman" 
size=3></FONT></SPAN></SPAN></FONT></FONT> </DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT face="Times New Roman" 
size=3>Un saludo,</FONT></SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT face="Times New Roman" 
size=3>Juan Antonio.</FONT></DIV>
<DIV><BR></DIV></SPAN></SPAN></FONT></FONT>
<DIV><FONT><FONT face=Arial size=2><SPAN 
style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN></FONT></FONT> </DIV>
<DIV><FONT size=2><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><FONT 
face=Arial></FONT></FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=l.fix3r.l@gmail.com href="mailto:l.fix3r.l@gmail.com">David Reza</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=cconclase@listas.conclase.net 
  href="mailto:cconclase@listas.conclase.net">Lista de correo sobre C y C++</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, December 25, 2006 7:07 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [C con Clase] Problema: Errores 
  en el Compilador</DIV>
  <DIV><BR></DIV>Hola, pues apenas hoy, en plena víspera de Navidad aquí en 
  México me decidí a instalar el Dev-C++ y a relizar una clase y un objeto que 
  tengo como ejemplos en un libro de C++. Según basta con poner esto y me debe 
  de compilar todo. El archivo fuente es este: <BR><BR>
  <DIV style="COLOR: rgb(0,0,0); TEXT-ALIGN: center">
  <DIV style="TEXT-ALIGN: left"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">#include <cstdlib></SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">#include <iostream></SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">#include "stdafx.h</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">#include 
  "TarjetaCredito.h"</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">#using 
  <mscorlib.dll></SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">using namespace System;</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">using namespace 
  std;    //</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">int main()</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">{</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">    TarjetaCredito 
  *Mi_Cuenta;</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">    Mi_Cuenta = new 
  TarjetaCredito; </SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">    Mi_Cuenta -> 
  HacerCompra(100);</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">    Mi_Cuenta -> 
  Pagar(70);</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">    Mi_Cuenta -> 
  Resultados();</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">    delete 
  Mi_Cuenta;</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">    return 
  0;</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">}</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">bool 
  TarjetaCredito::HacerCompra(double amount)</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">{</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     if 
  (currentBalance + amount > creditLimit)</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     
  {</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">                        
  return false;</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     
  }</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     
  else</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     
  {</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">         
  currentBalance += amount;</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">         
  return true;</SPAN> <BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     
  }</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">}</SPAN> <BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">void TarjetaCredito::Pagar(double 
  amount) </SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">{</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     
  currentBalance -= amount; </SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">}</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)"></SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">void 
  TarjetaCredito::Resultados()</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">{</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     
  Console::Write("Número de Cuenta");</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     
  Console::Writeline(numCuenta);</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     </SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     
  Console::Write("Balance Actual");</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">     
  Console::Writeln(currentBalance);</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">}<BR><BR><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,255)">Y el de el archivo de cabecera 
  TarjetaCredito es el siguiente:<BR><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><BR>class TarjetaCredito</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">{</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">      
  public:</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">             
  bool HacerCompra(double amount);</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">             
  void Pagar(double amount);</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">             
  void Resultados(); </SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">      
  private:</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">              
  long numCuenta;</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">              
  double currentBalance;</SPAN><BR 
  style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">              
  double creditLimit;</SPAN><BR style="BACKGROUND-COLOR: rgb(255,255,153)"><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,153)">}<BR><BR><SPAN 
  style="BACKGROUND-COLOR: rgb(255,255,255)">Podrían decirme en qué estoy mal? 
  como digo, según el libro con eso basta para que el programa se compile pero 
  me dan errores en las primeras lineas de include. Se supone que el programa 
  debería ejecutar las funciones miembro de la clase TarjetaCredito y darme mal 
  los datos de todas las variables miembro privadas ya que nunca las inicialicé 
  y toman cualquier valor que esté en la memoria donde se encuentra el obejeto 
  verdad? <BR><BR>Otras preguntas:<BR><BR>Qué es API? Sé que es Application 
  Programming Interface pero podrían darme ejemplos?<BR><BR>¿Cómo hago una clase 
  administrada? En Visual Studio es con _gc antes del nombre de la clase, en 
  todos los compiladores es igual? <BR><BR>¿La clase administrada me sirve para 
  que los objetos se eliminen solos cuando ya no se necesiten? También sé que se 
  crean en el CLR (Common Language Runtime) en vez de crearse en la pila y por 
  tanto se tienen que crear objetos primero definiendo un puntero para poder 
  almacenar la dirección de memoria del objeto. <BR><BR>¿Cómo creo una clase no 
  administrada? ¿Con _value antes del nombre de la clase? ¿Es igual para todos 
  los compiladores?<BR><BR>¿Un puntero puede almacenar otro puntero? ¿En las 
  clases administradas se supone que al crear un objeto se crea en tiempo de 
  ejecución y en realidad devuelve un puntero que almacenamos en otro puntero? 
  <BR><BR>Ojalá y puedan ayudarme. Saludos desde México 
  ;)<BR></SPAN></SPAN><BR><BR></SPAN></SPAN></DIV><SPAN></SPAN></DIV>--------------------------<BR>| 
  = David Reza = | 
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Cconclase mailing 
  list<BR>Cconclase@listas.conclase.net<BR>http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net<BR></BLOCKQUOTE></BODY></HTML>