r1869

dslinux_amadeus at dslinux.in-berlin.de dslinux_amadeus at dslinux.in-berlin.de
Tue Sep 4 20:03:10 CEST 2007


Author: amadeus
Date: 2007-09-04 20:03:05 +0200 (Tue, 04 Sep 2007)
New Revision: 1869

Log:
reduce to the point

Modified: trunk/user/rtest/rtest.cxx
===================================================================
--- trunk/user/rtest/rtest.cxx	2007-09-04 17:59:35 UTC (rev 1868)
+++ trunk/user/rtest/rtest.cxx	2007-09-04 18:03:05 UTC (rev 1869)
@@ -1,42 +1,29 @@
-//#include <iostream.h>
-#include <stdio.h> 
+#include <iostream>
 
+using namespace std;
+
+/*
 class test1 {
 public:
 test1();
-~test1();
+virtual ~test1();
 
 virtual const char *self(void);
-virtual const char *selfa(void);
-virtual const char *selfb(void);
-virtual const char *selfc(void);
-
 };
 
 test1::test1() {
-	puts("constructor test1\n");
+	cout << "constructor test1" << endl;
 }
 
 test1::~test1() {
-	puts("destructor test1\n");
+	cout << "destructor test1" << endl;
 }
 
 const char *test1::self(void) {
 	return "test 1";
 }
+*/
 
-const char *test1::selfa(void) {
-	return "test 1a";
-}
-
-const char *test1::selfb(void) {
-	return "test 1b";
-}
-
-const char *test1::selfc(void) {
-	return "test 1c";
-}
-
 /*
 class test2: public test1 {
 public:
@@ -63,34 +50,15 @@
 
 int main()
  {
-	test1 *bubi;
-//	unsigned int *x;
+//	test1 *bubi;
 
-	puts("start: before new\n");
-
+	cout << "start: before new" << endl;
+/*
 	bubi = new test1;
 
-//	puts("after new\n");
+	cout << bubi->self()<< endl;
 
-	/* get address of object */
-//	x = (unsigned int *) bubi;
-//	printf("%X\n ", x[0]);
-
-	// get vtable contents
-//	x = (unsigned int *) x[0];
-//	printf("%X ", x[0]);
-//	printf("%X ", x[1]);
-//	printf("%X\n ", x[2]);
-
-	puts( bubi->self());
-
 	delete bubi;
-
-    	// Dies ist das Hello-World-Programm
-//    	cout<<"Hello, world!"<<endl;
-	
-//	printf("Hello");
-
-
+*/
 	return 0;
  };




More information about the dslinux-commit mailing list