#include <iostream> #include <vector> using namespace std; typedef vector< double > VecType; VecType * createVector( int size ) {...
Whether slurping the file is a good idea or not depends upon the situation. For example, I find it useful when retrieving and searching webpages...
Firstly, you should just say [Pp] instead of [P|p]; the vertical bar is not needed (and is in fact taken literally) inside the square brackets....
#pragma is a preprocessor directive that speaks directly to the implementation, such as the compiler or linker, or possibly the IDE. Check your...
I would just allocate a vector that is the biggest you will need and use that, only freeing it at the end. If you can't do that for some reason,...
If you can't find it on the CD case or on the computer case, there are a number of free key-finding programs available. Google "free keyfinder".
Good job! Just for your interest, here's how I would've done it. (Actually, I probably would've used pointers instead of indices.) The...
There was an error in my pseudocode. It says "i" should run from 0 to "last". Actually, "i" should start at 0, but the loop should continue...
I still don't understand what you are trying to do. And I can't comprehend your code at all. Getting late here. (yawn) Goodnight.
In which assembly language? What exactly is the problem?
Sorry I couldn't get back to you earlier. Busy day! However, your code makes my head hurt, so I'd rather suggest some pseudocode. Try something...
Your insertion sort should be more like this:public static void insertion_sort() { for( int j = 1; j < accList.length; ++j ) { for(...
The first thing we tend to ask is: What do you have so far? Where are you stuck?
Hilarious! Or like going to the doctor and just staring at him. Keep it up long enough and he'll send you to a psychiatrist!
Your FormMail.pl is incomplete. It just sets variables and does nothing. It doesn't even have a closing brace for the BEGIN. Also, I'm...
Wikipedia has a description and a C implementation as well. http://en.wikipedia.org/wiki/Quick_sort
No problem. Thanks for introducing me to boost!
Have you tried adding .* to the beginning and end of the regex string? That's what my last post was about (I should have emphasized that)....
Hey thekev, I've had dinner, installed boost, and I think I've found the problem. Try this as your regex string:...
One last thought. Try this: boost::regex re ("<div\\sclass=\"Summary\">(.*?)</div>", boost::regex::mod_s); If that doesn't work, try...
Separate names with a comma.