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
21
tutorial/Ntl05/Ntl05.cpp
Normal file
21
tutorial/Ntl05/Ntl05.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include <Core/Core.h>
|
||||
#include <list>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
Array< std::list<int> > al;
|
||||
for(int i = 0; i < 4; i++) {
|
||||
std::list<int>& l = al.Add();
|
||||
for(int q = 0; q < i; q++)
|
||||
l.push_back(q);
|
||||
}
|
||||
|
||||
for(int i = 0; i < al.GetCount(); i++) {
|
||||
const std::list<int>& l = al[i];
|
||||
for(std::list<int>::const_iterator it = l.begin(); it != l.end(); it++)
|
||||
LOG(*it);
|
||||
LOG("------");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue