mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
commit
263ff5f895
2665 changed files with 642923 additions and 0 deletions
23
tutorial/Ntl03/Ntl03.cpp
Normal file
23
tutorial/Ntl03/Ntl03.cpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
Vector<int> v;
|
||||
v.Add(1);
|
||||
v.Add(2);
|
||||
DUMPC(v);
|
||||
|
||||
Vector<int> v1 = v;
|
||||
DUMPC(v1);
|
||||
// DUMPC(v); -> v is picked, this would crash with runtime error
|
||||
|
||||
v <<= v1;
|
||||
DUMPC(v1);
|
||||
DUMPC(v);
|
||||
|
||||
Vector<int> v2(v, 0);
|
||||
DUMPC(v2);
|
||||
DUMPC(v);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue