1

In later versions of C#, there is the concept of named arguments, such as this:

static int CalculateBMI(int weight, int height)
{
    return (weight * 703) / (height * height);
}
. . .
var a = CalculateBMI(weight:100, height:60);

Does such a concept exist in C++, and if so, how is it used?

Researched thus far: Kernighan & Ritche, "C Programming Language" 2nd ed (okay, I know it's C, but still a good starting point)
C++.com search
google search
SO search

Aaron Thomas
  • 5,054
  • 8
  • 43
  • 89

0 Answers0