Yes - I'm a noob. :rolleyes:

I just wanted to be 100% sure that I understand what a parameter is before I go on lol.

#include <iostream>

//header of function?
int Add (int x, int y)
{
     using std::cout;
     //Parameters x and y?
     cout << "In Add(), received " << x << " and " << y << " \n";
     return (x+y)
}

Does this mean that the whole line is the parameter, or just the X and y?

int Add (int x, int y)
{
     using std::cout;
     //Parameters x and y?
     cout << "In Add(), received " << x << " and " << y << " \n";
     return (x+y)
}

The function Add takes two parameters, x and y.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.