From 9a86d44d48943414881ce0a91b43eb2a12b24a37 Mon Sep 17 00:00:00 2001 From: Ethan-Liu301 Date: Mon, 7 Oct 2024 03:26:29 +0000 Subject: [PATCH] added c++ and rust hello world --- scripts/c++/helloworld.cpp | 5 +++++ scripts/rust/hello.rs | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 scripts/c++/helloworld.cpp create mode 100644 scripts/rust/hello.rs diff --git a/scripts/c++/helloworld.cpp b/scripts/c++/helloworld.cpp new file mode 100644 index 0000000..f6c0537 --- /dev/null +++ b/scripts/c++/helloworld.cpp @@ -0,0 +1,5 @@ +#include + +int main(){ + std::cout << "Hello World!" << std::endl; +} \ No newline at end of file diff --git a/scripts/rust/hello.rs b/scripts/rust/hello.rs new file mode 100644 index 0000000..f084790 --- /dev/null +++ b/scripts/rust/hello.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello World!"); +} \ No newline at end of file