diff options
Diffstat (limited to 'ruby_1_8_6/ext/dl/sample/c++sample.C')
-rw-r--r-- | ruby_1_8_6/ext/dl/sample/c++sample.C | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/ruby_1_8_6/ext/dl/sample/c++sample.C b/ruby_1_8_6/ext/dl/sample/c++sample.C deleted file mode 100644 index d083d337a7..0000000000 --- a/ruby_1_8_6/ext/dl/sample/c++sample.C +++ /dev/null @@ -1,35 +0,0 @@ -#include <stdio.h> - -class Person { -private: - const char *name; - int age; - -public: - Person(const char *name, int age); - const char * get_name(); - int get_age(); - void set_age(int i); -}; - -Person::Person(const char *name, int age) - : name(name), age(age) -{ - /* empty */ -} - -const char * -Person::get_name() -{ - return name; -} - -int -Person::get_age(){ - return age; -} - -void -Person::set_age(int i){ - age = i; -} |