diff options
Diffstat (limited to 'package/helloworld/src')
-rw-r--r-- | package/helloworld/src/helloworld.c | 2 | ||||
-rw-r--r-- | package/helloworld/src/helloworld.cc | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/package/helloworld/src/helloworld.c b/package/helloworld/src/helloworld.c index 232880377..02f468f1f 100644 --- a/package/helloworld/src/helloworld.c +++ b/package/helloworld/src/helloworld.c @@ -1,6 +1,6 @@ #include <stdio.h> int main() { - printf("Hello World\n"); + printf("Hello World! (C)\n"); return 0; } diff --git a/package/helloworld/src/helloworld.cc b/package/helloworld/src/helloworld.cc new file mode 100644 index 000000000..ac640ca2a --- /dev/null +++ b/package/helloworld/src/helloworld.cc @@ -0,0 +1,6 @@ +#include <iostream> + +main() { + std::cout<<"Hello World! (C++)\n"; + return 0; +} |