Add types to links

This commit is contained in:
Kamran Ahmed committed 2024-06-06 23:23:55 +01:00
1 parent 0a579b4507
commit 390db65e32
2455 files changed
+6127 -6116

No files matched your search

@@ -45,6 +45,6 @@ int main() {
In the above program, we define a simple function `add` and a class `Calculator` with a member function `multiply`. The `main` function demonstrates how to use these to perform basic arithmetic.
- [C++ Tutorial for Beginners - Full Course](https://youtu.be/vLnPwxZdW4Y)
- [w3schools C++ tutorial](https://www.w3schools.com/cpp/)
- [Learn C++](https://www.learncpp.com/)
- [@video@C++ Tutorial for Beginners - Full Course](https://youtu.be/vLnPwxZdW4Y)
- [@article@w3schools C++ tutorial](https://www.w3schools.com/cpp/)
- [@article@Learn C++](https://www.learncpp.com/)
@@ -131,5 +131,5 @@ int main() {
This basic introduction to C++ should provide you with a good foundation for further learning. Explore more topics such as classes, objects, inheritance, polymorphism, templates, and the Standard Template Library (STL) to deepen your understanding of C++ and start writing more advanced programs.
- [LearnC++](https://www.learncpp.com/)
- [C++ Full Course by freeCodeCamp](https://youtu.be/vLnPwxZdW4Y)
- [@article@LearnC++](https://www.learncpp.com/)
- [@video@C++ Full Course by freeCodeCamp](https://youtu.be/vLnPwxZdW4Y)
@@ -12,4 +12,4 @@ These are just a few examples, and there are many other code editors available,
To work with C++ in your chosen code editor, you often need to install some additional tools and add-ons, such as compilers, linters, and debugger support. Make sure to follow the instructions provided in the editor's documentation to set up C++ correctly.
- [Using C++ on Linux in VSCode](https://code.visualstudio.com/docs/cpp/config-linux)
- [@article@Using C++ on Linux in VSCode](https://code.visualstudio.com/docs/cpp/config-linux)
@@ -16,9 +16,9 @@ To install a compiler, simply follow the instructions provided by the respective
An IDE is a software application that provides facilities for programming, such as code editing, debugging, and building. Some popular C++ IDEs include:
- [Visual Studio](https://visualstudio.microsoft.com/vs/features/cplusplus/) (Windows, macOS)
- [Eclipse](https://eclipse.org) (Windows, macOS, Linux)
- [Code::Blocks](http://www.codeblocks.org) (Windows, macOS, Linux)
- [@article@Visual Studio](https://visualstudio.microsoft.com/vs/features/cplusplus/) (Windows, macOS)
- [@article@Eclipse](https://eclipse.org) (Windows, macOS, Linux)
- [@article@Code::Blocks](http://www.codeblocks.org) (Windows, macOS, Linux)
After downloading and installing an IDE, you might need to configure it to use the installed compiler. Check the documentation of the respective IDE for instructions on how to do this.
@@ -86,4 +86,4 @@ int main() {
In summary, loops are an integral part of C++ programming that allow you to execute a block of code multiple times. The three types of loops in C++ are `for`, `while`, and `do-while`. Each type has its own specific use case and can be chosen depending on the desired behavior.
- [C++ For Loop](https://www.w3schools.com/cpp/cpp_for_loop.asp)
- [@article@C++ For Loop](https://www.w3schools.com/cpp/cpp_for_loop.asp)
@@ -65,5 +65,5 @@ int result = 5 >> 1; // result will be 2 (0000 0101 >> 1 = 0000 0010)
```
These were the most common bitwise operations in C++. Remember to use them carefully and understand their behavior when applied to specific data types and scenarios.
- [Intro to Binary and Bitwise Operators in C++](https://youtu.be/KXwRt7og0gI)
- [Bitwise AND (&), OR (|), XOR (^) and NOT (~) in C++](https://youtu.be/HoQhw6_1NAA)
- [@video@Intro to Binary and Bitwise Operators in C++](https://youtu.be/KXwRt7og0gI)
- [@video@Bitwise AND (&), OR (|), XOR (^) and NOT (~) in C++](https://youtu.be/HoQhw6_1NAA)
@@ -61,5 +61,5 @@ updateDays(30); // expiresInDays = 30
Note that, when using the capture by reference, any change made to the captured variable *inside* the lambda function will affect its value in the surrounding scope.
- [Lambdas in C++](https://youtu.be/MH8mLFqj-n8)
- [Lambda Expressions](https://en.cppreference.com/w/cpp/language/lambda)
- [@video@Lambdas in C++](https://youtu.be/MH8mLFqj-n8)
- [@article@Lambda Expressions](https://en.cppreference.com/w/cpp/language/lambda)
@@ -73,4 +73,4 @@ int multiplyNumbers(int x, int y) {
In this example, we use a function prototype for `multiplyNumbers()` before defining it. This way, we can call the function from the `main()` function even though it hasn't been defined yet in the code.
- [introduction to functions in c++](https://www.learncpp.com/cpp-tutorial/introduction-to-functions/)
- [@article@introduction to functions in c++](https://www.learncpp.com/cpp-tutorial/introduction-to-functions/)
@@ -26,5 +26,5 @@ int main() {
In the code above, the variable `num` is statically typed as an `int`, `pi` is statically typed as a `double`, and `c` is statically typed as a `char`. If you attempt to assign the value of `pi` to `num`, the value `3.14159` will be converted to the integer `3` and assigned to `num`. Similarly, when the value of `num` is assigned to `c`, the compiler will convert the value `65` to its corresponding [ASCII](https://www.ascii-code.com) code, which is `A`.
- [Type-Coversion](https://www.programiz.com/cpp-programming/type-conversion)
- [Static Vs Dynamic](https://www.techtarget.com/searchapparchitecture/tip/Static-vs-dynamic-typing-The-details-and-differences)
- [@article@Type-Coversion](https://www.programiz.com/cpp-programming/type-conversion)
- [@article@Static Vs Dynamic](https://www.techtarget.com/searchapparchitecture/tip/Static-vs-dynamic-typing-The-details-and-differences)
@@ -47,4 +47,4 @@ int main() {
In this example, we create a `shared_ptr` named `shared` that manages a `MyClass` object. By assigning it to a `weak_ptr` named `weak`, we store a non-owning reference to the object. Inside the inner scope, we create a new `shared_ptr` named `sharedFromWeak` using `weak.lock()` to safely use the object. After the inner scope, the `MyClass` object is destroyed since `shared` goes out of scope, and any further attempt to create a `shared_ptr` from `weak` will fail as the object is already destroyed.
- [CPP Reference](https://en.cppreference.com/w/cpp/memory/weak_ptr)
- [@article@CPP Reference](https://en.cppreference.com/w/cpp/memory/weak_ptr)
@@ -43,4 +43,4 @@ Type casting is the process of converting a value from one data type to another.
Remember to use the right type of casting based on the specific situation and follow good programming practices in order to ensure a safe and efficient code.
- [Casting in C++](https://youtu.be/pWZS1MtxI-A)
- [@video@Casting in C++](https://youtu.be/pWZS1MtxI-A)
@@ -70,4 +70,4 @@ int main()
In the above example, Poco is used to send an HTTP GET request and process the response. It manages tasks like connecting to the server, handling exceptions, and managing HTTP headers.
- [Official Docs for Poco Library](https://docs.pocoproject.org/)
- [@article@Official Docs for Poco Library](https://docs.pocoproject.org/)