Hello,(adsbygoogle = window.adsbygoogle || []).push({});

I have been pretty good with this stuff...but this is the umteenth time I have run into this error. I have gone around it by just using the direct function in the code, but I really really want to master this function calling. My compilation error is always term does not evaluate to a function taking 1 (or two) arguements. Where am I going wrong? I did the current function that comes up with the error by the book. literally. Here is the code. The Error comes up at theAdd_num (N1_n,N2_n).

#include<iostream>

#include<cmath>

#include<math.h>

#include"Formulas.h"

double SQRT_NORM (double a);

using namespace std;

int main ()

{

bool again = false;

do

{

double N1, N2, N1_n, N2_n, Newz, Add_num, USR_SQRT;

char choice;

cout<<"Enter a first of two positive numbers:"<<endl;

cin>>N1;

N1=N1_n;

cout<<"Enter the second number of two positive numbers:"<<endl;

cin>>N2;

N2=N2_n;

Add_num (N1_n,N2_n);HERE IS WHERE THE ERROR IS REPORTED

SQRT_NORM (Newz);

cout<<"The Magnitude of the complex number is:"<<endl;

cout<< "\n Would you like to run the program again?";

cin>> choice;

if (choice == 'y')

{

again = true;

system ("cls");

}

else

again = false;

} while (again);

return 0;

}

//Below are the formulas used in this lab

double Add_num (double a, double b)

{

double Add_num;

Add_num = a+b;

return Add_num;

}

double SQRT_NORM (double a)

{

double SQRT_NORM;

SQRT_NORM = sqrt (a);

return SQRT_NORM;

}

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# C++ Function Calling

**Physics Forums | Science Articles, Homework Help, Discussion**