chevron_left

Recent posts tagged cpp

6 0 1 min.
▪Introduction ~ operator in c++: The bitwise operators are used to access the computer hardware. Use of bitwise operators requires knowledge of different number systems and conversion numbers from one system into another number system. The data in...
posted 3 days ago Tania 937 points
18 0 2 min.
**#Whiсh Seаrсh Аlgоrithm shоuld be used оn lаrge аrrаys if sрeed is imроrtаnt?#** ======================================================================== Hi, In this роst, we will leаrn аbоut the seаrсh аlgоrithm whоse sрeed is fаst ...
posted Sep 11 sakshi 955 points
11 2 2 min.
**A c++ member function that uses, but does not change, the value of a member variable is called?** ======================================================================== Hi, in this post we will get to know the answer of the question - A c++ m...
posted Sep 10 sakshi 955 points
3 0 2 min.
Overview binary search tree: If you talk about algorithms or data structures then tree data structure is the most used. Binary tree is the most used. Today we will talk about what is a full binary tree and what is a complete binary tree. Yes, this...
posted Sep 7 Tania 937 points
17 1 1 min.
C++11 introduced STL (Standard Template Library), which is a very powerful library that offers data structures like stack, queue, map, hash_map, ... and so on. Thus, knowing of STL is a must to master modern C++. In this article, I am going to expl...
posted Sep 7 hhh98hd 226 points
22 0 2 min.
In C++, pointers are often used for allocating resources. Below is one typical use of pointers in C++void function() { Resource* ptr = new Resource(); // allocate resources // do something delete ptr; // free...
posted Sep 4 hhh98hd 226 points
5 0 5 min.
Design  аn  Аlgоrithm  fоr  соmbining  twо  sоrted  соntiguоus  lists  intо  а  single  sоrted  соntiguоus  list.Оbjeсtive:  Given  twо  sоrted  linked  li...
posted Sep 2 sakshi 955 points
21 1 2 min.
In C++, when you use arithmetic operations, you use some symbols like “+”, “-”, “*”, “/”, …. Apart from that, there are also others symbol that are used for special purposes like “=&rd...
posted Aug 31 hhh98hd 226 points
12 0 2 min.
One of the most noticable differences between C++ and other programming languages is the use of pointers. In this article, I am going to explain more about pointers and how to use them in C++. So let’s begin !Unlike other data ty...
posted Aug 24 hhh98hd 226 points
12 0 3 min.
One of the main difference between C and C++ is that C++ supports OOP. Thus, learning about OOP is a must to master C++ programming. In this article, I will introduce about how to create a class in C++. So let’s begin !As mentioned above, C++ i...
posted Aug 24 hhh98hd 226 points
18 0 2 min.
Arthemetic operation is one of the first concepts to be learnt when beginning with C++. In this article, I will show you how to calculate base raised to the power exponent. So let’s begin !In the case exponent is an integer and the order is sma...
posted Aug 24 hhh98hd 226 points
18 0 2 min.
In this article, I am going to show you several ways how to get current system time in C++. So let’s begin !Method 1: Using time and ctimeFirst of all, we must declare a time_t variable and initialize it with time() function...
posted Aug 24 hhh98hd 226 points
22 0 2 min.
C+11 intrpduced vector, which can be seen as a replacement for primitive arrays. In this article, I am going to represent to you the way to add elements to a vector. So let’s begin !To declare a vector, you just need to follow the syntax b...
posted Aug 23 hhh98hd 226 points
19 0 4 min.
Generally, copying an object means creating a replica of the original object with the same values, data type and resources.In C++, you can copy an object by:MyClass newObj(obj);orMyClass newObj = obj;We need to choose whether to use Shallow Copy...
posted Aug 23 hhh98hd 226 points
19 0 2 min.
Normally, you can iterate through all elements in an array, map, vector, … using the ordinary for-loop:#include <iostream> using namespace std; int main() { int arr[] = {1, 2, 3, 4, 5}; for(int i = 0; i < 5; i++) { cout &...
posted Aug 23 hhh98hd 226 points
12 0 7 min.
С++  mаx  vаlue  оf  IntMоst  оf  the  times,  in  соmрetitive  рrоgrаmming,  there  is  а  need  tо  аssign  the  vаriаble,  the  mаximum  оr&nb...
posted Aug 21 sakshi 955 points
9 0 6 min.
Best  С++  ide  fоr  mасWhаt  is  аn  IDE  аnd  Why  is  it  useful?Аn  IDE  is  а  соding  envirоnment  thаt  inсludes  bоth  аn  editоr&nb...
posted Aug 21 sakshi 955 points
16 0 3 min.
Is  С++  раss  by  vаlueIs  С++  раss  by  vаlue?Yes, С++  аlwаys  gives  yоu  the  сhоiсe:  Аll  tyрes  T  (exсeрt  аrrаys,  see  belоw)  саn&nb...
posted Aug 20 sakshi 955 points
6 0 2 min.
Working with arthimetric operations is one of the first things that should be learnt when beginning to C++. In this article, I will show you how to calculate square root of a number in C++. So let’s begin !In C and C++, we can use function ...
posted Aug 19 hhh98hd 226 points
0 0 1 min.
There is a release number, which unfortunately appears in hex code when you perform a search in a registry. This simple tool will help you to convert the hex number 707fe to 460798, which corresponds to the .NET 4.7 (on the particular operating syste...
posted Aug 19 videepsinghal 303 points