Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

default argument c++

Rational CreateRational(int num, int denom=1) {
  Rational result;
  result.numerator=num;
  result.denominator=denom;
  return result;
}
Source by en.cppreference.com #
 
PREVIOUS NEXT
Tagged: #default #argument
ADD COMMENT
Topic
Name
7+9 =