// – 1; cout<<" New message bit is "; for(int

//
//  main.cpp
//  CRCProject
//
//  Created by Vidit Kalani on 12/23/17.
//  Copyright © 2017 Vidit Kalani. All rights reserved.
//
#include
#define SIZE 20
using namespace std;

class CRC
{
    int messSIZE,divSIZE,resSIZE,remSIZE;
    int rmesSIZE,rdivSIZE,rresSIZE,rremSIZE;
    int msize,dsize,rsize;
    int rmsize,rdsize,rrsize;
    public :
    CRC();
    void getdata();
    void display();
    void convert();
    void checkcrc();
};

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

//CRC

CRC :: CRC()
{
    for(int i=0;i>msize;
    
    cout<<" Enter the message bit ";     for(int i=0;i>messi;
    }
    
    cout<<" Enter the size of the divisor bit ";     cin>>dsize;
    for(int i=0;i>divi;
    }
}//getdata()

void CRC :: display()
{
    cout<<" Enteres message bit is ";     for(int i=0;i0;i–)
    {
        remi = resrsize;
        rsize–;
    }
    cout<<" Remainder is ";     for(int i=1;i>rmesi;
    }
    
    cout<<" Entered data is ";     for(int i=0;i0;i–)
    {
        rremi = rresrrsize;
        rrsize–;
    }
    
    cout<<" Remainder is ";     for(int i=1;i