How to create an object in C++

By YANNAM SATYA AMRUTHA

In this discussion, let’s understand different ways of creating objects in C++. First, let’s know a few things about a class and an object. Every entity, whether living.... Read More

Random function in C++ with range

By YANNAM SATYA AMRUTHA

In this article, we’ll talk about a C++ function that is commonly used for gaming and security purposes in order to generate a random number from a specified range. C++ inclu.... Read More

Get human readable version of file size in Python

By Amandeep Singh

In this post, we will explore numerous techniques to acquire file size in human-readable forms like Bytes, Kilobytes (KB), MegaBytes (MB), GigaBytes(GB), and many more. Get record .... Read More

How to get the last occurrence of a character in a string in Swift

By Aakanksha Thakar

In this tutorial, will see how to get the last occurrence of a character in a string in Swift. This task can be done easily with the help of in-built functions from Swift. Step 1: .... Read More

Get name and extension of file from absolute path in C++

By Aakanksha Thakar

In this tutorial will see the C++ code to get the file name and the extension from its absolute path. The file’s absolute path is a path from its root folder. Each folder is .... Read More

Python strip() with example

By Amandeep Singh

We’ll study a Python String strip() function in this tutorial with the aid of examples. Python String strip() Method The string’s leading and trailing characters are.... Read More

Add a character to a specific position in a string in Python

By Prachi Pandey

In this tutorial, you will learn how to add a character to a specific position in a string in Python. When it comes to programming, strings are considered to be a sequence of chara.... Read More

Call a function from another class in Swift

By Khushi Aswani

In this tutorial, we will create two classes and try to call a function from Class 1 in Class 2. This helps in various tasks of classes and their objects. We will create a class na.... Read More

Related Posts