Code drop from //branches/cupcake/...@124589
This commit is contained in:
22
pdk/ndk/samples/sample/hello_cpp.cpp
Normal file
22
pdk/ndk/samples/sample/hello_cpp.cpp
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user