Cita:
Saludos... #include <stdio.h>
#include <stdlib.h>
class Operacion
{
public:
int a;
int b;
int suma()
{
return a+b;
}
};
int main()
{
Naturales n;
n.a = 5;
n.b = 2;
printf("Suma: %d\n",n.suma());
system("pause");
return 0;
}
#include <stdlib.h>
class Operacion
{
public:
int a;
int b;
int suma()
{
return a+b;
}
};
int main()
{
Naturales n;
n.a = 5;
n.b = 2;
printf("Suma: %d\n",n.suma());
system("pause");
return 0;
}