|
Hey y'all,
I study math in France, and i need to program my first half year, and after that i am finished with c++. My first three assignments went very well, only the last one is a problem, hope you can help.
I need to make a program that asks a number, and than, by the use of pointers, i need to see if the inverse of the number is the same as the number itself. Like :
12345 --> 1 , 2 , 3 , 4 , 5 is not the same as 5 , 4 , 3 , 2 , 1.
When it is not the same, i have to give the sum of the two numbers, so 12345 + 54321, and then see if that number is inversible. It becomes difficult when 9, 8, 7 + 7, 8, 9 = 16, 16, 16 = 1776.
Thus, i managed to make an program with all kinds of voids, which should be no longer than 20 lines. This program uses pointers, which i must use, to seperate all the numbers.
I don't know how to inverse this, or how to get the sum.
The things i have learned, and may use, are classes, voids, pointers, arrays, and the basic features.
Can anybody help?
With much appriciation,
Thierry
|
|
|
I think it is very difficult to me to help you answer this question! i'M SORRY, BUT I CAN ASK IT FOR MY FRIEND, He is very good at it:)
__________________________ flash banner|flash menu
|
|
|
|
|
|
|
|