BigInteger Class v6.7.28 

BigInteger Class v6.7.28

Hola a todos, aquí os pongo el código fuente de BigInteger Class v6.7.28 que os permitirá realizar operaciones matemáticas (suma, resta, multiplicación, dividir) números más allá de los límites convencionales del int o del unsigned long int. Pues nada que aquí está el código fuente y también un enlace para descargarlo, gracias a http://www.uploading.com

Aquí os dejo un ejemplo de como utilizar la clase BigInteger, solo que debes tener la precaución de copiar la definición de la clase es un fichero de cabecera (por ejemplo BigInteger.h) y luego incluirlo dentro de tu proyecto.


//
// BigIntegerTest.cpp
//
// Copyright (C) Jorge Luis Betancourt González
//
// El siguiente código es software libre, puede usarlo, distribuirlo y/o modificarlo
// para más información acceda a http://www.gnu.org/copyleft/gpl.es.html
// y encontrará el contenido de la licencia GPL (General Public Licence)
//


#include
#include
#include

using namespace BigMath; // Utilizamos el alis acreado en la clase

int main() {
char str[1000], other[1000];
cin >> str >> other;

/*if (strcmp(str,"0") == 0) // Evitamos que sumemos algo más 0
cout << "hm...zero..." << endl;
else {*/

BigInteger& n = *new BigInteger(str);
BigInteger& p = *new BigInteger(other);

cout << n - p << endl;

system("pause");

return 0;
}

El enlace para descargar el fichero completo es el siguiente: Descargar BigInt

Return to Main Page

Comments

Comment !!!!Aún espero un correo tuyo o del fisico!!!!. Escribeme y dime como está eso allá. Y mandame la dirección de tu correo... Y si te sabes el del fisico también.

Thu Sep 7, 2006 8:15 am MST by de Dariel Vigo

Add Comment




On This Site

  • About this site
  • Main Page
  • Most Recent Comments
  • Complete Article List
  • Sponsors

Search This Site


Syndicate this blog site

Powered by BlogEasy


Free Blog Hosting