dslinux/user/rtest rtest.cxx

amadeus dslinux_amadeus at user.in-berlin.de
Sun Oct 15 13:19:50 CEST 2006


Update of /cvsroot/dslinux/dslinux/user/rtest
In directory antilope:/tmp/cvs-serv20190/user/rtest

Modified Files:
	rtest.cxx 
Log Message:
-- testing --

Index: rtest.cxx
===================================================================
RCS file: /cvsroot/dslinux/dslinux/user/rtest/rtest.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- rtest.cxx	15 Oct 2006 09:44:38 -0000	1.3
+++ rtest.cxx	15 Oct 2006 11:19:48 -0000	1.4
@@ -1,9 +1,62 @@
-#include <iostream.h>
-//#include <stdio.h> 
+//#include <iostream.h>
+#include <stdio.h> 
+
+class test1 {
+public:
+test1();
+virtual ~test1();
+
+virtual const char *self(void);
+
+};
+
+test1::test1() {
+	puts("constructor test1\n");
+}
+
+test1::~test1() {
+	puts("destructor test1\n");
+}
+
+const char *test1::self(void) {
+	return "test 1";
+}
+
+class test2: public test1 {
+public:
+test2();
+virtual ~test2();
+
+virtual const char *self(void);
+
+};
+
+test2::test2() {
+	puts("constructor test2\n");
+}
+
+test2::~test2() {
+	puts("destructor test2\n");
+}
+
+const char *test2::self(void) {
+	return "test 2";
+}
+
+
+
 int main()
  {
+	test1 *bubi;
+
+	bubi = new test1;
+
+	puts( bubi->self());
+
+	delete bubi;
+
     	// Dies ist das Hello-World-Programm
-    	cout<<"Hello, world!"<<endl;
+//    	cout<<"Hello, world!"<<endl;
 	
 //	printf("Hello");
 




More information about the dslinux-commit mailing list