Hi.Im new to programming .
I started learning c++ few days ago.i chose my first book Jumping into c++ by alex allain.
At the end of chapter 6 there are some practice problems.
This is the one
Make your calculator program perform computations in a separate function for each type of computation.
Why is does not let me asign ?
im doing the rest of the problem in the right way?
|48|error: assignment of function 'int adunare(double, double)'|
|48|error: cannot convert 'double' to 'int(double, double)' in assignment|
MiiNiPaa thank you very much!
i didnt learn pascal before but i wish i did..i really want to learn programming
i did some changes after you told me how to return and it works fine thank you again.
#include <iostream>
#include <string>
using namespace std;
int adunare(double nr1 , double nr2);
int scadere(double nr1, double nr2);
int inmultire(double nr1,double nr2);
int impartire(double nr1,double nr2);