Enlightenment CVS committal
Author : andreas
Project : e17
Module : proto/eflpp
Dir : e17/proto/eflpp/examples/ecore/list
Modified Files:
main.cpp
Log Message:
- fixed Ecore_List and Ecore_DList
- fixed example
===================================================================
RCS file: /cvs/e/e17/proto/eflpp/examples/ecore/list/main.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- main.cpp 23 Sep 2007 09:45:15 -0000 1.1
+++ main.cpp 26 Sep 2007 21:24:41 -0000 1.2
@@ -7,10 +7,11 @@
int main( int argc, const char **argv )
{
+ // int* test
EcoreList <int> numberList;
-
+
int n[6] = {10,11,12,13,14,15};
-
+
numberList.append( &n[0] );
numberList.append( &n[1] );
numberList.append( &n[2] );
@@ -19,10 +20,28 @@
numberList.append( &n[5] );
int *i = numberList.gotoFirst ();
+ i = numberList.next ();
for (; i != NULL; i = numberList.next ())
{
printf ("i = %d\n", *i);
+ }
+
+ // char* test
+ EcoreList <char> strList;
+
+ char *str[3] = {"First", "Second", "Third"};
+
+ strList.append( str[0] );
+ strList.append( str[1] );
+ strList.append( str[2] );
+
+ char *s = strList.gotoFirst ();
+ s = strList.next ();
+
+ for (; s != NULL; s = strList.next ())
+ {
+ printf ("s = %s\n", s);
}
return 0;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs