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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #default #argument
ADD COMMENT
Topic
Name
9+5 =