Skip to content

Within this repository, you will find meticulously organized code files, documentation, examples, and additional resources to aid you in your programming journey.

License

Notifications You must be signed in to change notification settings

nitishhsinghhh/Tips-and-Tricks-for-Programming-using-Cpp

Repository files navigation

Tips and Tricks for Programming using Cpp

Welcome to the GitHub repository! Here, you'll find all the code and resources from my Medium articles, focused on sharing practical tips for C++ developers. My aim is to provide easy-to-understand solutions and useful advice to help developers improve their C++ skills.

The articles cover a wide range of C++ programming topics, from basic concepts to more advanced techniques. Whether you're just starting out or have years of experience, you'll find helpful tips and examples to boost your knowledge and make coding easier.

No matter your skill level, this repository is a great place to learn and grow. Let’s work together to build a stronger, more knowledgeable tech community!

How to Use

To run these programs, you need to have a C++ compiler installed on your computer. Once that's set up, you can download the program files from this repository and compile them using the compiler. Since C++ is a compiled language, the code needs to be converted from a human-readable format into something a computer can understand. This conversion is done by a tool called a compiler.

Typically C++ source code files are given the suffix:

  1. .cpp (ex: firstCode.cpp) or
  2. .h (ex: std_lib_facilities.h).

image

  • Compile: g++ firstCode.cpp -o firstCode
    A compiler translates the C++ program into machine language code which it stores on the disk as a file with the extension .o (e.g. firstCode.o). A linker then links the object code with standard library routines that the program may use and creates an executable image which is also saved on disk, usually as a file with the file name without any extension (e.g. firstCode).

  • Execute: ./firstCode
    The executable is loaded from the disk to memory and the computer’s CPU (Central Processing Unit) executes the program one instruction at a time. Alternatively, you can also use an online C++ compiler to run these programs without needing to install a compiler on your computer.

Getting Started

To compile and run these programs on your local machine, you'll need to have the appropriate programming language and compiler installed. Here are the steps to get started:

  1. Clone this repository to your local machine using git clone.
  2. Navigate to the folder containing the program you want to run.
  3. Follow the instructions in the program's README file to compile and run the program.

Contributions

If you have any suggestions for improvements or would like to add additional C++ programs to this repository, please feel free to create a pull request. We welcome contributions from the community to make this repository more useful for everyone.

Contributions to this repository are welcome! If you'd like to contribute, please follow these guidelines:

  1. Fork this repository to your own GitHub account.
  2. Create a new branch for your changes using git checkout -b my-feature-branch
  3. Make your changes and commit them with a descriptive commit message.
  4. Push your changes to your forked repository with git push origin my-feature-branch
  5. Submit a pull request to this repository with a detailed description of your changes.

To fork this repository, follow these steps:

  1. Navigate to the repository on GitHub.
  2. Click on the "Fork" button in the top-right corner of the page.
  3. Select the account or organization where you want to fork the repository.
  4. Wait for the forking process to complete.

Contents:

  • Tips
  • Computer Science Basics
  • Learning Resources
  • Problem Solving
  • Projects Ideas

Please help by giving a star

⭐ Please give this repository a star. It takes seconds and help thousands of developers! ⭐

Once you have forked the repository, you will have your own copy of the code and resources to work with. You can make changes to the code, add new resources, and submit pull requests to contribute your changes back to the original repository.

image

Contact

Thank you for your suggestions! If you think there is anything to improve, please contact me at [email protected].

About

Within this repository, you will find meticulously organized code files, documentation, examples, and additional resources to aid you in your programming journey.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages