Posted on October 31, 2009, 11:53 pm, by , under
Object.
Code: template <typename type> class SSmallMemory { protected: static SFixedAllocator classAllocator; }; template <typename type> SFixedAllocator SSmallMemory<type>::classAllocator = SFixedAllocator(sizeof(type), 1024); I guess this is the thing I really dislike about C++, the core problem that keeps it from being easy to program in.
Tags:
files-should,
fill-the-right,
header,
lhasa-apso,
manner,
output-method,
template,
template-match,
the-allocator,
the-template,
work-out-how,
xml No Comments |
Read the rest of this entry »
Posted on October 31, 2009, 11:33 pm, by , under
Object.
Hi everyone, Before i start i’ve gotta admit i’m new when it comes to coding. For our college work we’ve gotta create a programme that lets a user input some numbers until 0 is entered. Upon entering 0 the programme then spits out how many of the numbers put in are even and how many are odd.