Welcome to the Learn Programming repository! I made this repo to get started with programming concepts and practices. It provides simple and effective examples for beginners, focusing on C++ as a starting point.
This repository contains examples of basic programming techniques to help you understand how to write, compile, and execute your code. We'll focus on C++ as a starting point but aim to expand to other languages in the future.
By following the examples, you'll learn how to:
- Write simple programs
- Compile and execute your code
- Get comfortable with the development environment
Here’s a basic C++ program that prints "Hello, World!" to the console:
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}To compile the C++ code, open your terminal, navigate to the directory where the file is saved, and run the following command:
g++ hello.cpp -o helloThis will compile the hello.cpp file and produce an executable file named hello.
Once the code is compiled successfully, you can run the program by using the following command in the terminal:
./helloThis will execute the program and you should see the output:
Hello, World!
-
- C and C++ Concepts
-
- Introduction to Data Structures
-
- Recursion
I welcome contributions to this repository! If you have suggestions for improving the examples or adding new programming languages, feel free to fork the repository and submit a pull request.
To contribute:
- Fork this repository
- Create a new branch for your changes
- Submit a pull request with a clear description of the changes
This project is open-source and available under the MIT License. https://datalemur.com/blog/advanced-sql-interview-questions