|
as using min and max in lite-c
#215724
07/13/08 00:38
07/13/08 00:38
|
Joined: Apr 2006
Posts: 10 Brasil
alves
OP
Newbie
|
OP
Newbie
Joined: Apr 2006
Posts: 10
Brasil
|
|
|
|
Re: as using min and max in lite-c
[Re: alves]
#215728
07/13/08 00:47
07/13/08 00:47
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
minv maxv
or
int myownminfunction (int a, int b) { if (a < b) {return a;} else {return b;} }
Last edited by Joozey; 07/13/08 00:48.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: as using min and max in lite-c
[Re: TechMuc]
#215868
07/13/08 19:34
07/13/08 19:34
|
Joined: Apr 2006
Posts: 10 Brasil
alves
OP
Newbie
|
OP
Newbie
Joined: Apr 2006
Posts: 10
Brasil
|
|
|
|
Re: as using min and max in lite-c
[Re: alves]
#215880
07/13/08 20:33
07/13/08 20:33
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
Lite-c does not support the trinary ternary operator at all ^^.
Last edited by Joozey; 07/14/08 19:02.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: as using min and max in lite-c
[Re: DJBMASTER]
#215970
07/14/08 11:24
07/14/08 11:24
|
Joined: Jul 2008
Posts: 894
TechMuc
User
|
User
Joined: Jul 2008
Posts: 894
|
foreacst: Debugging local variables. Defining classes. Adding enums, unions, and trinary operators. so they are planed
|
|
|
Re: as using min and max in lite-c
[Re: Joozey]
#216040
07/14/08 20:15
07/14/08 20:15
|
Joined: Jan 2003
Posts: 4,615 Cambridge
Joey
Expert
|
Expert
Joined: Jan 2003
Posts: 4,615
Cambridge
|
Adding enums, unions, and trinary operators. so is it trinary or ternary?
|
|
|
Re: as using min and max in lite-c
[Re: Joey]
#216046
07/14/08 20:46
07/14/08 20:46
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
Ternary according to wiki, but using google, many seem to use trinary (by mistake?). Google self advises to search for ternary though  . So I think trinary is not even a word. Derived from the three steps you fuse together perhaps? "if, then, else"EDIT: tri means three as well.
Last edited by Joozey; 07/14/08 20:48.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
|