commit b1b8426ea256a25132d655e2fdf6322bc0387410 Author: Gerardo Marx Date: Sat Apr 24 14:00:51 2021 +0000 initial commit 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