>>Does anyone know of a module (or other method) of stripping URLs out of a file?
Yea, CPAN has a module called HTML::LinkExtor that'll do what you want.
Type: Posts; User: Casey
>>Does anyone know of a module (or other method) of stripping URLs out of a file?
Yea, CPAN has a module called HTML::LinkExtor that'll do what you want.
>>Where do I find those functions in standard C?
You don't because they're not standard functions.
>>but the other two used no algorithm: just copied the file.
I'm insulted (not really :D), my algorithm was a carefully crafted work of art designed to give the best average compression and...
>>Will on his first post
Whoo! Welcome to Cprogramming,com Whoie. :) Not to boost your ego or anything but the only reason I go to programmersheaven with any regularity is to read your posts. :)
...
>>but i still claim that since i know for every value of i the result it's not undefinied
What is every value? Can you prove it? On every possible combination of machine, operating system, and...
Looks pretty straightforward to me. This might help a bit.
>>How can I determine the length of each of the array of floats?
#define LEN(x) sizeof (x) / sizeof (x[0])
...
memcmp(a, b, LEN(a));
Your braces don't match up, you're missing one here
} // end big if statement
else
cout<<"\nCorrect!\n\n";
It should be
>>What is this _impure_ptr?
Probably a variable used in the library.
>>Do I have to worry about it?
Since you're getting an error that is probably stopping compilation, yes, you have to worry...
>>If you run in mode 13h you are not as limited in the graphics department.
I didn't know that you could run in mode 13h on Windows XP. How is it done?
>>That's always confused me...get(), getline()...ofstream,ifstream???
It's just like using cin and cout except you have to open the stream instead of it being done for you. :)
>>why do all of the books I pick up and go through use void main()
It's simple, the author doesn't know the language he's writing about. If he did, he would know that void main isn't legal in...
>>sorry about the mistype...it actually is
Then your problem is the second problem. The first being a typo, the second being a local variable hiding the class member.
int * pAge = new int;
...
It helps if you can count, you know: 1,2,3,4,5,6,7,8,9,10. Then you have to relearn how to count: 0,1,2,3,4,5,6,7,8,9. All set after that. :D
>>Issit required me to defined each cases from 0,1,2,3...39=BAD ...... 100
Yes. A four part if/else if/else statement is just a smidge better than a 100 case switch/case statement or something...
Compilers will usually have a list like that, but it's different for each compiler. Check the documentation or the web page of the creator.
I just ignore those warnings. They do nothing except tell me that VC++ has a junky implementation. Why use an implementation-specific #pragma(I don't like pragmas if you can tell ;)) to remove...
>>HOW CAN I CALL EACH VARIABLE ON EACH LOOP(using i)???
You use an array. I don't understand what you're going on about, if the switch/case works then why bother doing something exotic to avoid it?
The only difference between a static and nonstatic function is that a static function only has file scope. A nonstatic (external) function can be seen by other files. There's absolutely nothing wrong...
Is this what you're looking for?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *sbreak(char *s, char *tok, char *del)
{
char *new_s;
That was pretty much all I could come up with as well. All of them are pretty awkward with how I was doing it, so I scrapped the idea of the object handling such things. Here's what I have now.
...
I got a parse error here
void SetAt(int nRow, int nCol, const T& value) throw(std::out_of_range); {
That semicolon shouldn't be there. Try removing it and see what happens.
strchr returns a pointer to somewhere inside of the string in question if the value is found. So if the string is "test\n"
char *newline = strchr(str, '\n');
will return a pointer to the '\n'...
What I've come up with so far are two classes, one that makes and shows a console based menu and one that handles the actual options and actions mapped to those options. But I can't figure out a...
Can you post your code already? You've given us useless little snippets so far, we need more to figure out what your exact problem is.