Now as far as I can tell, that program seems to work.
The broken for loop (which doesn't seem to be broken in this version) begins on line 178.
The identical for loop in the original program...
Type: Posts; User: Stark_Barksalt
Now as far as I can tell, that program seems to work.
The broken for loop (which doesn't seem to be broken in this version) begins on line 178.
The identical for loop in the original program...
And here's my solution, all pretty and overly-commented and hopefully not trashy looking like my original post.
#include <iostream>
#include "console.h"
#include "vector.h"
#include...
First, here's the problem, paraphrased.
The problem, as it appears in the book, is copyrighted stuff. To me it doesn't seem like a big deal to post this practice problem from the book, but I...
Yes, that code will work. I tried several similar tests, on line 62 of the program in the original post there is a for loop with no purpose other than to try it out to see what's up, and it actually...
the header for the Vector type
/*
* File: vector.h
* --------------
* This file exports the <code>Vector</code> class, which provides an
* efficient, safe, convenient replacement for...
^yes that's what the code looks like in my compiler. Sorry it got jacked up in translation.
By "size member" if you mean what "requests.size()" would return, it returns an int, not an unsigned...
edit: got the code formatted a little better. Tabs are replaced by single spaces, but at least its halfway readable now
This'll be a long post, so I'll start with just the gist of the problem, and...