int m, d, y, h, n;
while (input_data >> m >> d >> y >> h >> n)
fileData.push_back(new Appointment(m, d, y, h, n));
Type: Posts; User: tap3ah
int m, d, y, h, n;
while (input_data >> m >> d >> y >> h >> n)
fileData.push_back(new Appointment(m, d, y, h, n));
If you are going to use grumpy's code you must remove line 4 from tha function
spriteAddress = 0;
Local spriteAddress is set to point to the_address but if you set it to 0 you'll get the same...
As I already mentioned
copy is a standard algorithm. But don't worry, I'm not mentioning it to humiliate you either.
See 12-1 corrected.
Well, thank you for your detailed dissection of...
Actually, I used dozens of technical forums without using a single harsh word.
Thank you for pointing that out. I would probably realize that myself after long period od inactivity of the...
You posted while I was typing my first solution. You were just too fast.
This was aimed to people actively working on those exercises, or at least own the book. I thought it was obvious.
The...
class Str{
friend
istream& operator>>(istream&, Str&);
public:
typedef size_t size_type;
Str& operator+=(const Str& s){
char *old_data(data);
data = alloc.allocate(length + s.length);...
Zero-sized array was a mistake. I left it to solve it later, but forgot about it because the code DID compile (gcc 4.6.2).
I'm sure you see logic in your reasoning, but the truth is, you are just...
If that's really true you would spend your time pointing out what I did wrong, instead of writing your hateful post.
The whole reason I started this thread is that I badly needed help with some...
Reimplement the Str class, but choose an implementation strategy that requires that the class manage the storage itself. For example, you might store an array of char and a length. Consider what...
From the authors:
Rethinking How to Teach C++Part 7: Payback time
Rethinking How to Teach C++, Part 8: An interesting revision
Add an operation to remove an element from a Vec and another to empty the entire Vec. These should behave analogously to the erase and clear operations on vectors.
// from the code from the...
Post your own solutions, or comment those posted by others.