i feel both of ya
same boat different ocean.
Im working on my masters thesis in Information systems.
here is a sample of my ringbuffer algorithm (ohh the excitment!!!)
template <typename T>
RingBuffer <T>::RingBuffer()
{
firstUsed= firstFree = 0;
}
template <typename T>
RingBuffer <T>::~RingBuffer()
{
Release();
}
template <typename T>
RingBuffer <T>::RingBuffer(const RingBuffer& source )
{
Clone (source);
}
template <typename T>
int RingBuffer <T>:
ushBack (const T &t)
{
if (firstUsed == 0) // empty ring
{
firstUsed = new BLink(t);
if (firstUsed == 0) //check memory allocation
return 0;
firstFree = new BLink(t);
if (firstFree == 0) //check memory allocation
return 0;
firstUsed-> next = firstFree;
firstFree-> next = firstUsed;
return 1;
}
etc.. etc...
I have no fucking life
Help!!!:crying:
class...