A crazy problem(at least to me)

i have to decide a program to "satisfy" my crazy private tutor .This program reads in 2 input extremely large postive integers. It will then output their sum.
However , as C++ got limit in int, so i think i need to use string variables to represent the values..then use some loops to get pairs of digits add up together..

but then what if the length of the 2 strings are different or the digits add up >= 10??......it is driving me mad.......

please stick to my suggestions and avoid showing me some higher levels code.......or else my tutor will know i am not doing it all by myself........

A few things: We only provide help, we don't give away codes. You must also try to think about it on your own.
Minimum value for a variable of type short. –32768.
Maximum value for a variable of type short. 32767.
Visit here for some other relavnt information:http://msdn2.microsoft.com/en-us/library/ms860861.aspx I have the entire program (i had to do it a while back for a project), so i'll help you along but give it a shot. See what you come up with and post it here. See you around.

Thank you for ur help ..but it seems that this method the numbers have been restricted by a range..so i am afraid it is completely different from what i am going to do...anyway..Thx and i think i will juz try my best to complete this task.

this is not the purpose of what i am going to do to the limit set by C++ for int; i think i will stick to my string-loop method and add up the digits place to place....and perhaps think hard on how to carry value up tp the left one when previous add>=10

The string/loop approach is probably the best at this point, however, you need some mechanism to add two values together, which I think is what Zandiago was trying to point out.

I'd recommend taking a step few steps back and try answering each of the following questions one at a time building on each previous answer.

If you have a string of char representing 1 digit per char how do you access a given char(digit) within the given string? Once you have a given char from within a given string how do you convert it to a numerical value? Once you can do that for a given string, do it for two strings and add the two values together. Then how would you convert the result back to a char that you could store in a third string? Where in the third string would you store the resultant char? Then how would you determine if you need to "carry" a value and if you have to "carry" how would you determine what to "carry" and what to store where if you "remove" the "carry"? What does the need to "carry" mean in terms of the program, where would the "carry" go in the resultant string compared to the two char you took out of the two original strings and how might you accomplish this?

If you write a program to answer the first question, then expand that program to answer each successive question and merge the resultant program with what you have already, then you probably won't have too much else to do.

I've seen other approaches to this problem, but this seems like a common approach for those of us who don't earn a living doing this sort of stuff.

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...