Skip to content

hhandoo/learn_programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Programming

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.

Table of Contents

Introduction

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

How to Compile Code

Code Example

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;
}

Compiling the Code

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 hello

This will compile the hello.cpp file and produce an executable file named hello.

Running the Compiled Program

Once the code is compiled successfully, you can run the program by using the following command in the terminal:

./hello

This will execute the program and you should see the output:

Hello, World!

Topics Covered

    1. C and C++ Concepts
    1. Introduction to Data Structures
    1. Recursion

Contributing

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:

  1. Fork this repository
  2. Create a new branch for your changes
  3. Submit a pull request with a clear description of the changes

License

This project is open-source and available under the MIT License. https://datalemur.com/blog/advanced-sql-interview-questions

About

Learn Programming is an open-source repository offering beginner-friendly tutorials and examples to help you get started with programming.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors