This problem is need to reverse the integer and add them up and reverse the added number again..but,i can;t get three output,i just got 1 reverse output..
#include <iostream>
using namespace std;
int input1();
int input2();
int input3();
int input4();
int input5();
int input6();
int reverse(int input_1);
int calculate(int,int);
int calculate2(int,int);
int calculate3(int,int);
void print(int,int,int);
int main()
{
int num1,num2,num3,num4,num5,num6,process1,process2,process3,process4,process5,process6,display,display2,display3;
Ok, first off, please put code inside of [code][/code] tags. This makes it more readable. It highlights and perserves indentation and spacing.
Second.. why all the input functions? You don't need a seperate function for every input. You need one input function, and call that to store the return value into each of the num variables.
Same goes for the reverse and calculate. You're already passing the numbers to the functions. You can use the same function over and over again with different numbers and get different results.
You've seem to have missed the whole point of re-usability.
Correct that and then we'll get into what's giving you the error.