Search:

Type: Posts; User: Casey

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,527

    >>Does anyone know of a module (or other method)...

    >>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.
  2. Thread: Stdafx.h?

    by Casey
    Replies
    8
    Views
    2,928

    >>Where do I find those functions in standard C?...

    >>Where do I find those functions in standard C?
    You don't because they're not standard functions.
  3. Replies
    87
    Views
    12,161

    >>but the other two used no algorithm: just...

    >>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...
  4. Thread: Terms used in C

    by Casey
    Replies
    12
    Views
    3,093

    >>Will on his first post Whoo! Welcome to...

    >>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. :)
    ...
  5. Thread: urgent

    by Casey
    Replies
    8
    Views
    1,740

    >>but i still claim that since i know for every...

    >>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...
  6. Thread: help!!

    by Casey
    Replies
    1
    Views
    1,062

    Looks pretty straightforward to me. This...

    Looks pretty straightforward to me. This might help a bit.
  7. Replies
    7
    Views
    3,784

    >>How can I determine the length of each of the...

    >>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));
  8. Replies
    5
    Views
    1,112

    Your braces don't match up, you're missing one...

    Your braces don't match up, you're missing one here


    } // end big if statement
    else
    cout<<"\nCorrect!\n\n";

    It should be
  9. Replies
    2
    Views
    8,896

    >>What is this _impure_ptr? Probably a variable...

    >>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...
  10. Replies
    8
    Views
    3,417

    >>If you run in mode 13h you are not as limited...

    >>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?
  11. Thread: complicated

    by Casey
    Replies
    14
    Views
    2,731

    >>That's always confused me...get(),...

    >>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. :)
  12. Thread: void main()

    by Casey
    Replies
    22
    Views
    2,661

    >>why do all of the books I pick up and go...

    >>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...
  13. Thread: member pointer

    by Casey
    Replies
    7
    Views
    1,093

    >>sorry about the mistype...it actually is Then...

    >>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;
    ...
  14. Replies
    29
    Views
    6,202

    It helps if you can count, you know:...

    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
  15. >>Issit required me to defined each cases from...

    >>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...
  16. Replies
    4
    Views
    1,503

    Compilers will usually have a list like that, but...

    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.
  17. Replies
    7
    Views
    4,410

    I just ignore those warnings. They do nothing...

    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...
  18. Thread: calling an array

    by Casey
    Replies
    16
    Views
    2,133

    >>HOW CAN I CALL EACH VARIABLE ON EACH LOOP(using...

    >>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?
  19. Replies
    4
    Views
    1,020

    The only difference between a static and...

    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...
  20. Thread: Split function

    by Casey
    Replies
    7
    Views
    2,681

    Is this what you're looking for? #include...

    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;
  21. Replies
    2
    Views
    7,640

    That was pretty much all I could come up with as...

    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.

    ...
  22. Replies
    4
    Views
    1,584

    I got a parse error here void SetAt(int...

    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.
  23. Thread: Reading text

    by Casey
    Replies
    5
    Views
    1,018

    strchr returns a pointer to somewhere inside of...

    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'...
  24. Replies
    2
    Views
    7,640

    Elegant console based menus

    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...
  25. Replies
    10
    Views
    1,483

    Can you post your code already? You've given us...

    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.
Results 1 to 25 of 48
Page 1 of 2 1 2