From eaadb270df5f77f3238a229510083ac3ace511c5 Mon Sep 17 00:00:00 2001 From: iusr Date: Fri, 23 Apr 2021 11:04:56 +0800 Subject: [PATCH] hello world --- Makefile | 2 ++ hello.cpp | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 Makefile create mode 100644 hello.cpp diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8160511 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +hello.exe:hello.cpp + g++ -std=c++11 -o hello.exe hello.cpp diff --git a/hello.cpp b/hello.cpp new file mode 100644 index 0000000..6e72910 --- /dev/null +++ b/hello.cpp @@ -0,0 +1,16 @@ +#include + +using namespace std; + +int main() +{ + int x[] = {1,2,3,4,5}; + for(int i:x) + { + cout<