Subversion Repositories Kolibri OS

Rev

Rev 5974 | Rev 7746 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5965 leency 1
#define MEMSIZE 4096*120
5959 leency 2
 
3
#include "../lib/io.h"
4
#include "../lib/collection.h"
5
 
5974 leency 6
collection s;
7
 
5959 leency 8
void main()
9
{
10
	io.run("/sys/develop/board", "");
5974 leency 11
	test1();
12
	test2();
13
}
14
 
15
void test1() {
5965 leency 16
	s.add("Hello");
17
	s.add("World!");
5974 leency 18
	debugln(s.get(0)); //-> Hello
19
	debugln(s.get(1)); //-> World
5965 leency 20
	s.drop();
5974 leency 21
}
22
 
5975 leency 23
void test2()
5974 leency 24
{
25
	int i;
26
	s.add("0");
27
	s.add("1");
28
	s.add("2");
29
	s.add("3");
30
	for (i=0; i 0 1 2 3
31
	s.count--;
32
	s.count--;
33
	s.add("4");
34
	for (i=0; i 0 1 4
35
	s.drop();
5959 leency 36
}