commit | 5c11852110eeb03dc5a69111354b383f98d15336 | [log] [tgz] |
---|---|---|
author | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 21 07:00:00 2008 -0700 |
committer | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 21 07:00:00 2008 -0700 |
tree | 7b26fde6effb80c241f28fc3e620016e7f86418e |
Initial Contribution
diff --git a/pdk/ndk/sample/hello_cpp.cpp b/pdk/ndk/sample/hello_cpp.cpp new file mode 100644 index 0000000..c0a157a --- /dev/null +++ b/pdk/ndk/sample/hello_cpp.cpp
@@ -0,0 +1,22 @@ +#include <stdio.h> +#include "hello_cpp.h" + +Hello::Hello() +{ +} + +Hello::~Hello() +{ +} + +void Hello::printMessage(char* msg) +{ + printf("C++ example printing message: %s", msg); +} + +int main(void) +{ + Hello hello_obj; + hello_obj.printMessage("Hello world!\n"); + return 0; +}