diff --git a/public/data/cpp.json b/public/data/cpp.json index 48172189..d1ff6b2d 100644 --- a/public/data/cpp.json +++ b/public/data/cpp.json @@ -1,4 +1,23 @@ [ + { + "categoryName": "Basics", + "snippets": [ + { + "title": "Hello, World!", + "description": "Prints Hello, World! to the terminal.", + "code": [ + "#include // Includes the input/output stream library", + "", + "int main() { // Defines the main function", + " std::cout << \"Hello, World!\" << std::endl; // Outputs Hello, World! and a newline", + " return 0; // indicate the program executed successfully", + "}" + ], + "tags": ["cpp", "printing", "hello-world", "utility"], + "author": "James-Beans" + } + ] + }, { "categoryName": "String Manipulation", "snippets": [ diff --git a/public/data/javascript.json b/public/data/javascript.json index 9fb3dc05..a85bbcdf 100644 --- a/public/data/javascript.json +++ b/public/data/javascript.json @@ -1,4 +1,18 @@ [ + { + "categoryName": "Basics", + "snippets": [ + { + "title": "Hello, World!", + "description": "Prints Hello, World! to the terminal.", + "code": [ + "console.log(\"Hello, World!\"); // Prints Hello, World! to the console" + ], + "tags": ["javascript", "printing", "hello-world", "utility"], + "author": "James-Beans" + } + ] + }, { "categoryName": "Array Manipulation", "snippets": [ diff --git a/public/data/python.json b/public/data/python.json index b4c9c2b0..31111331 100644 --- a/public/data/python.json +++ b/public/data/python.json @@ -1,4 +1,18 @@ [ + { + "categoryName": "Basics", + "snippets": [ + { + "title": "Hello, World!", + "description": "Prints Hello, World! to the terminal.", + "code": [ + "print(\"Hello, World!\") # Prints Hello, World! to the terminal." + ], + "tags": ["python", "printing", "hello-world", "utility"], + "author": "James-Beans" + } + ] + }, { "categoryName": "String Manipulation", "snippets": [ diff --git a/public/data/rust.json b/public/data/rust.json index f75f2559..75648018 100644 --- a/public/data/rust.json +++ b/public/data/rust.json @@ -1,4 +1,20 @@ [ + { + "categoryName": "Basics", + "snippets": [ + { + "title": "Hello, World!", + "description": "Prints Hello, World! to the terminal.", + "code": [ + "fn main() { // Defines the main running function", + " println!(\"Hello, World!\"); // Prints Hello, World! to the terminal.", + "}" + ], + "tags": ["rust", "printing", "hello-world", "utility"], + "author": "James-Beans" + } + ] + }, { "categoryName": "String Manipulation", "snippets": [