From b1b8426ea256a25132d655e2fdf6322bc0387410 Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Sat, 24 Apr 2021 14:00:51 +0000 Subject: [PATCH] initial commit --- Readme.md | 4 ++++ hello-world.c | 6 ++++++ hello-world.cpp | 7 +++++++ 3 files changed, 17 insertions(+) create mode 100644 Readme.md create mode 100644 hello-world.c create mode 100644 hello-world.cpp diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..4ad9946 --- /dev/null +++ b/Readme.md @@ -0,0 +1,4 @@ +# Lecture 4: An overview of C and C++ +A long this lecture let us test two basic Hello World scripts on C and C++, respectively. The idea is to remember the compilation chain process to obtain an executable application. + +## C-code diff --git a/hello-world.c b/hello-world.c new file mode 100644 index 0000000..c1ff3e4 --- /dev/null +++ b/hello-world.c @@ -0,0 +1,6 @@ +//Gerardo Marx 24/04/2021 +#include +int main(int argc, char *argv[]){ + printf("Hello World from BeagleBoard!!\n"); + return 0; +} diff --git a/hello-world.cpp b/hello-world.cpp new file mode 100644 index 0000000..459cb76 --- /dev/null +++ b/hello-world.cpp @@ -0,0 +1,7 @@ +// Gerardo Marx 24/04/2021 +// A C++ example +#include +int main(int argc, char *argv[]){ + std::cout << "Hello world from beagleboard on c++!!" << std::endl; + return 0; +} \ No newline at end of file