answersLogoWhite

0


Best Answer

ask jesus

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can i write arprogram in c plus plus to add two large integers with up to 300 digitsone approach is to treat each number as a list each of whose Elements is Block of digits of that numbe?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Computer Science

Different data types?

intlong intsort intstringcharfloatdoubleBooleanarraylisttreestackqueuegraph


What is the importance of hexadecimal?

Hex is used to represent computer addresses, as well as colors in HTML. You do not need to know how to multiply in hex integers, merely understand and be able to read them. Hex is also useful in being able to tell what the representation of a signed integer actually is in binary.


What is bigger -3 or -5?

-5 has a larger magnitude. It depends on your definition of "bigger". If you say bigger means "has a larger magnitude" then -5 is bigger than -3. If you say that if two numbers A and B are in the set of integers from negative infinity to positive infinity, then A is bigger than B if A is closer to positive infinity than B, this means that -3 is bigger than -5.


What is a class declaration?

A class declaration tells the compiler what your class will be called, what data it will contain, and what methods it will have. For example, in Java and C# it looks roughly like this: class MyClass { private int x; private int y; public MyClass(int px, int py) { x = px; y = py; } public int sumXY() { return x + y; } } This declares a class called 'MyClass' with two data elements (or variables), called 'x' and 'y'. They are integers (whole numbers). The class has a constructor method (constructor methods always have the same name as the class, so the constructor method is also called 'MyClass'). You give two numbers to the constructor method, and it fills in the two numbers in the MyClass object with those two numbers. The class also has another method, called 'sumXY', which returns the sum of the two numbers the object contains. The 'public' and 'private' are used to determine who can or can't see the variables and methods of your class. If a variable or method is marked 'private', it can only be seen by methods inside the class. If it's marked 'public', other classes can reach inside and look at it or even change it. Hope this helps.


How do you learn binary code?

Binary, itself, is rather simple. However it is only a numeric system. Turning it into letters, data, etc. is a much more complex task, and there are many, many ways to do so. Binary represents a numerical system. We use a base '10' system. 10 numbers represented by each field. IE, the one's place, ten's place, hundred's place. Each is a multiple of 10 (10x1 = 10's place, 10x10 = hundred's place, 10x100 = thousand's place). Binary works the same way, but with only two integers per field. 0 = 0 1 = 1 10 = 2 11 = 3 100 = 4 101 = 5 110 = 6 111 = 7 1000 = 8 1001 = 9 1010 = 10 1011 = 11 1100 = 12 1101 = 13 1110 = 14 1111 = 15 10000 = 16 100000 = 32 1000000 = 64 10000000 = 128 100000000 = 256 1000000000 = 512 10000000000 = 1024 100000000000 = 2048 1000000000000 = 4096 etc.etc.etc

Related questions

Which of the following sets of numbers contains multiplicative inverses for all its elements Positive Integers Integers Rational Numbers Real Numbers?

Rational numbers and Real Numbers. The multiplicative inverses of integers are not integers.


Which has more elements the set of positive odd integers less than 50 or the set of positive even integers less than 50?

The set of positive odd integers.


What is first three elements of positive integers?

1, 2 and 3.


What is are all the integers?

All integers are the elements of the set of integers, I, which is one of the components of the set of all real numbers, R. I = {..., - 3, -2, -1, 0, 1, 2, 3, ...}.


How many elements are there in the set of positive integers less than 8?

7 of them.


Does the set of integers include any elements from the set of counting numbers?

Yes, all of them.


Is a mixture of elements a compound?

No, unless all the elements involved in the mixture are present in fixed atomic proportions to one another that are ratios of integers, thereby showing that the elements are chemically bonded.


What does not represent the set of integers from 1 to 20?

Any set with fewer than or more than 20 distinct elements cannot represent the set of integers from 1 to 20.


What is the smallest negative integers?

The set of negative integers is {-1, -2, -3, ...}. The greatest negative integer is -1. From there the numbers progress toward negative infinity. There are an infinite number of negative integers as they approach negative infinity. So there is no smallest negative integer. -1


Name the set of 4 consecutive even integers starting with -4 Put the set in braces and put commas between the elements of the set?

Name the set of 6 consecutive integers starting with -3. (Put the set in braces { } and put commas between the elements of the set.)


What is the elements of integers between 5 and -3?

8


What is it when all whole numbers and their opposites are?

The elements of the set ... -2, -1, 0, 1, 2, ... are known as integers