Question: Write progeam with C + + : 1 . Write all programs in cross - platform C + + 2 . No Containers, NO STL
Write progeam with C:
Write all programs in crossplatform C
No Containers, NO STL allowed Vector Lists, Sets, etc...
Simple Oldfashion C No modern C
No Adding files
Nyble Class Description
Background : This is class creates an abstract data type, Nyble bits with overloaded operators.
You can add numbers to this data type, it will mask if it exceeds the bits of storage.
private: Storage of the bit data actually its but we are treating it as bit
public: Method getData returns the data
Methods to Add : The Big Four operators to public methods explicitly no defaults
a Default constructor
b Copy constructor
c Assignment operator
d Destructor operator
e Binary operators
Nyble constant
constant Nyble
Nyble Nyble
Nyble Nyble
f Unary operators
~ operator : Ones complement
operator : returns the value for academic purposes
casting operator to an unsigned int : subtracts to the value for academic purposes
preincrement : Nyble
postincrement : Nyble
operator
o Use as a rotational shift function within the nyble
o Each bit rotates to the left by the number specified
o If a bit fall off the edge it is rotated to the beginning bit.
x: b x answer x: b
Nyble.h:
#ifndef NYBLEH
#define NYBLEH
class Nyble
public:
insert your code here
unsigned char getData;
Do not add extra data in class
private:
Do not change this data
unsigned char data;
;
#endif
End of File
Nyble.cpp:
#include "Nyble.h
unsigned char Nyble::getData
return thisdata;
End of File
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
