4b Program in CPP For Selective Repeat
4b Program in CPP For Selective Repeat
#include<bits/stdc++.h>
#include<ctime>
int main()
{
ll tf, N, tt = 0;
srand(time(NULL));
cout << "Enter the Total number of frames : ";
cin >> tf;
cout << "Enter the Window Size : ";
cin >> N;
ll i = 1;
transmission(i, N, tf, tt);
cout << "Total number of frames which were sent and resent are : " << tt <<
endl;
return 0;
}
Sample output