mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-27 06:19:34 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@6428 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8d45f9375e
commit
daace28915
1 changed files with 15 additions and 11 deletions
|
|
@ -5,11 +5,22 @@ using namespace Upp;
|
|||
CONSOLE_APP_MAIN{
|
||||
StdLogSetup(LOG_FILE|LOG_COUT);
|
||||
|
||||
DUMP(sgn(10));
|
||||
DUMP(sgn(0));
|
||||
DUMP(sgn(-7));
|
||||
|
||||
DDUMP(min(6, 2, 7, 4));
|
||||
DDUMP(max(6, 2, 7, 4));
|
||||
|
||||
DUMP(findarg(3, 1, 7, 6, 3, 2));
|
||||
DUMP(findarg(5, 1, 7, 6));
|
||||
|
||||
DUMP(decode(2, 1, "one", 2, "two", 3, "three", "?"));
|
||||
DUMP(decode(5, 1, "one", 2, "two", 3, "three", "?"));
|
||||
|
||||
Vector<int> data, empty;
|
||||
data << 10 << 5 << 11 << 9 << 2;
|
||||
|
||||
DUMP(Sum(data));
|
||||
|
||||
DUMP(FindMin(data, 0, data.GetCount() - 1));
|
||||
DUMP(FindMin(data));
|
||||
DUMP(Min(data));
|
||||
|
|
@ -25,14 +36,7 @@ CONSOLE_APP_MAIN{
|
|||
|
||||
Vector<String> s = Split("one;two;three", ';');
|
||||
DUMP(Sum(s, ""));
|
||||
|
||||
DUMP(Sum(data));
|
||||
|
||||
DUMP(sgn(10));
|
||||
DUMP(sgn(0));
|
||||
DUMP(sgn(-7));
|
||||
|
||||
DUMP(findarg(3, 1, 7, 6, 3, 2));
|
||||
DUMP(findarg(5, 1, 7, 6));
|
||||
|
||||
DUMP(decode(2, 1, "one", 2, "two", 3, "three", "?"));
|
||||
DUMP(decode(5, 1, "one", 2, "two", 3, "three", "?"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue