DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CPP
max two numbers c++
template
<
class
T
>
inline
T
max
(
T a
,
T b
)
{
return
a
>
b
?
a
:
b
;
}
//Example: max(2,5) = 5
PREVIOUS
NEXT
Tagged:
#max
#numbers
ADD COMMENT
Topic
COMMENT
Name
9+2 =
Submit