Skip to main content

Posts

Showing posts from January, 2019

C++ Program for Bubble Sort

C++ Programming Code for Bubble Sort #include<iostream> using namespace std; int main() {     int a[50], n,i,j,tmp;     cout<<"enter size of array";     cin >>n;     cout<<"enter array elements";     for (i=0; i<n;i++)     {         cin>>a[i];     }     for(i=1;i<n;i++)     {         for(j=0;j<(n-i);j++)             if(a[j]>a[j+1])             {                 tmp=a[j];                 a[j]=a[j+1];                 a[j+1] =tmp;            ...

C++ Program to Add 3X3 Two Matrix using for loop

A Simple C++ program to add two Matrices   #include<iostream> using namespace std; int main() {     int a[3][3], b[3][3], ab[3][3];     int z=3, x=3;     cout<<"\nEnter elements of 1st matrix:\n";     for(int i=0; i<z; i++)     {         for(int j=0; j<x; j++)         {             cin>>a[i][j];         }     }     cout<<"\nEnter elements of 2st matrix:\n";     for(int i=0; i<z; i++)     {         for(int j=0; j<x; j++)         {             cin>>b[i][j];         }     }     //Adding Two matrices   ...

Bypassing website blocking/censorship without VPN/PROXY

FIREFOX STEPS -    1. Type  about:config on the url bar. 2. Search for network.trr, change network.trr.mode to 2 3. Search for network.security.esni.enabled and set it to true     (These steps MAY won't work if you are in a workplace and the employer has installed his own certificate on the machines and uses a ssl proxy in conjunction with the firewall)