#cpp
Read more stories on Hashnode
Articles with this tag
//Stack implementation in C++/C #include <iostream> using namespace std; int top =-1; void push(int * p,int size); void pop(); void print(int *p,int...
Link to the problem : https://www.codechef.com/problems/AIRLINE Chef has 3 bags that she wants to take on a flight. They weigh A, B, and C kgs...
Template Class in C++ #include <iostream> using namespace std; template <class T> class Vishek { private: T num1; T num2; ...
#include <iostream> using namespace std; void findElement(int*p,int size1,int x1){ for (int i=0;i<size1;i++){ if (p[i]==x1){ ...
#include <iostream> #include <stdbool.h> using namespace std; int main() { bool isFound=false; int arr[7]={ 4,6,7,8,10,12,14 }; ...
#include <iostream> using namespace std; int maxSalary(int (*p)[3],int row,int column){ int Tmax=0; int*arr=new int[row]; for (int...