Re: how to add two no. of 100 digits or more?



Tak wrote:
Umesh <fraternitydispo...@xxxxxxxxx> wrote:

Is there any way by which i can do it? Thanks.

#include<iostream>
#include<string>
#include<iomanip>
#include<algorithm>
using namespace std;

#define MAXN 9999
#define DLEN 4

class BigNum
{
private:
int a[500];//¿ÉÒÔ¿ØÖÆ´óÊýµÄλÊý
int len; //´óÊý³¤¶È
public:
BigNum(){len = 1;memset(a,0,sizeof(a));}

This has nothing to do with the C language.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net



--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • overloaded operator new
    ... using namespace std; ... class NoMemory ... int main ...
    (comp.lang.cpp)
  • How Hazardous is the following code
    ... copy/assignment defined and there is no exception handling...but was ... properly create/breakdown base class ... using namespace std; ... class SafeList: private list{ ...
    (alt.comp.lang.learn.c-cpp)
  • How Hazardous is the following code
    ... copy/assignment defined and there is no exception handling...but was ... properly create/breakdown base class ... using namespace std; ... class SafeList: private list{ ...
    (comp.lang.cpp)
  • Re: New C++. Why the flowing code cannot be compiled?
    ... using namespace std; ... Â static const int NUM_ELEMENTS = 16; ... You cannot initialise non-static members in the class defniniton. ...
    (comp.lang.cpp)
  • Re: Link List
    ... > using namespace std; ...
    (comp.lang.cpp)