mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 22:03:07 -06:00
New Core Tutorial
git-svn-id: svn://ultimatepp.org/upp/trunk@10538 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
dd88feaf2e
commit
6c22e727de
37 changed files with 3125 additions and 0 deletions
25
tutorial/CoreTutorial/ToDo.cpp
Normal file
25
tutorial/CoreTutorial/ToDo.cpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#include "Tutorial.h"
|
||||
|
||||
#if 0
|
||||
return CombineCompare(a.NDX, b.NDX)(a.V_TEXT, b.V_TEXT)(a.V_NUMBER)(b.V_NUMBER);
|
||||
|
||||
Vector<int> id = clone(_id);
|
||||
|
||||
SplitTo(ln.Mid(4), '@', path, ln);
|
||||
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
Event<const Vector<int>&> h = [](const Vector<int>& x) { DUMP(x); };
|
||||
|
||||
Event<> ev;
|
||||
|
||||
{
|
||||
Vector<int> x = { 1, 2 };
|
||||
ev = [=, x = pick(x)] { h(x); };
|
||||
}
|
||||
|
||||
ev();
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue