Search:

Type: Posts; User: Strider

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,446

    The program would flow better if the comparison...

    The program would flow better if the comparison logic was separated into individual functions. As it is, you just need to specify the second case in the conditional statement. Stating "&& c" for...
  2. Thread: XML Navigation

    by Strider
    Replies
    2
    Views
    2,436

    Here is one way to do it. Suppose the XML file...

    Here is one way to do it.

    Suppose the XML file looks like this:

    person.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persons xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <person>...
  3. Replies
    5
    Views
    18,875

    Not sure about the key press problem (maybe try...

    Not sure about the key press problem (maybe try using a different set of keys like '+' and '-').

    As far as the title bar disappearing, try setting the window position further in:...
  4. Replies
    0
    Views
    1,623

    Why use boolean literals in logical tests?

    Ok, I've seen this enough to assume there is some benefit or reason for this style.

    When a condition must be tested in code it is not that uncommon for someone to have
    code like this:


    if (...
  5. Replies
    2
    Views
    1,331

    A more efficient means of checking for an even...

    A more efficient means of checking for an even number would be
    division by 2 with the mod operator (%). This will return the
    remainder of a number divided by another. For example:


    int...
  6. Replies
    2
    Views
    1,319

    Use the Oracle Call Interface (OCI)...

    Use the Oracle Call Interface (OCI)

    http://lina.cli.di.unipi.it:8000/WG73-doc/server/pls23/ch902.html

    David
  7. I have not tested this code for any errors, but...

    I have not tested this code for any errors, but this is basically how it could be performed:


    typedef std::map<int, int> mapIntInt;
    typedef std::map<double, mapIntInt> mapDM;

    mapIntInt...
  8. Replies
    26
    Views
    4,670

    Here is one for all of those Unix/Linux users out...

    Here is one for all of those Unix/Linux users out there.

    Recently, a co-worker decided to hold some "brown bag" sessions on Unix and shell scripting. In an attempt to display the functionality of...
  9. Replies
    1
    Views
    3,975

    The answer you are looking for can be a bit...

    The answer you are looking for can be a bit detailed. You will need to use the OCI(Oracle Call Interface). The best thing is to just point you in the right direction. You should find everything...
  10. Thread: Pet Peeves

    by Strider
    Replies
    29
    Views
    6,438

    I hate people that use too much ****ing foul...

    I hate people that use too much ****ing foul language

    ... and Teletubbies. Way too violent. :D

    David
  11. Replies
    16
    Views
    2,295

    Create a header file for the function prototypes...

    Create a header file for the function prototypes and data declaration, a source file for the function definitions, and a source file for your main.

    functions.h

    #ifndef FUNCTIONS_H
    #define...
  12. Replies
    4
    Views
    3,241

    First and foremost, only use a binary search when...

    First and foremost, only use a binary search when you have a sorted array that obviously contains at least one element.

    In a binary search, you will always start in the middle. To determine the...
  13. Thread: UML question

    by Strider
    Replies
    4
    Views
    2,291

    The format is as follows: : =...

    The format is as follows:

    <name> : <type> = <default> {<parameter list, ...>}

    so...

    enum SEX
    {
    MALE,
    FEMALE
  14. Thread: UML question

    by Strider
    Replies
    4
    Views
    2,291

    I believe that it would look something similar to...

    I believe that it would look something similar to this:



    __________________________________________
    | SampleClass |
    |__________________________________________|...
  15. Replies
    5
    Views
    1,904

    Not sure what all your requirements are, but the...

    Not sure what all your requirements are, but the easiest method (without getting into any advanced data structures) would be to use one array of structs.

    Like so:
    // create the struct
    struct...
  16. Thread: Recursion link

    by Strider
    Replies
    2
    Views
    2,489

    You should show your work. void...

    You should show your work.


    void explain_recursion( void )
    {
    if (person == "moron")
    explain_recursion();
    }
    :D
    David
  17. Replies
    4
    Views
    2,021

    If you do not have any 3rd party partitioning...

    If you do not have any 3rd party partitioning software (i.e. Partion Magic) then the easiest option is to go ahead and do the Mandrake 8.2 install first. Mandrake comes equipped with DiskDrake, a...
  18. Replies
    4
    Views
    2,021

    Are you looking to do an upgrade? Is your hard...

    Are you looking to do an upgrade? Is your hard drive already partitioned for the space needed? Do you have more than one hard drive? What version of Linux/UNIX (FreeBSD needs to be on a primary...
  19. Replies
    1
    Views
    1,835

    // pointer to an array of ints int(*p)[10] ...

    // pointer to an array of ints
    int(*p)[10]

    // function that takes no parameters and returns a pointer to an int
    int*f()

    // pointer to a function that takes no parameters and returns an int ...
  20. Thread: Game Talk

    by Strider
    Replies
    60
    Views
    10,736

    One series of turn-based games that I can never...

    One series of turn-based games that I can never seem to get to much of is WORMS. A little bit of action and strategy mixed in with a load of laughs. Currently, I have been playing WORMS World...
  21. Thread: Profanity

    by Strider
    Replies
    44
    Views
    8,173

    Call me crazy, but I've always felt that the...

    Call me crazy, but I've always felt that the written word envolves more thought process than the spoken word.



    Exactly. People typically swear because they're trying to express there emotions...
  22. Replies
    20
    Views
    4,516

    Poll: X because f(x) = y. And if you don't believe me,...

    X because f(x) = y. And if you don't believe me, just ask the underpant's gnomes!

    I'm sure there is a verse in the Bible on this somewhere:
    And on the 25th hour of the 8th day, God created...
  23. Replies
    62
    Views
    13,605

    The Halloween episode that parodies the Nightmare...

    The Halloween episode that parodies the Nightmare on Elm Street films.

    Homer and Marge attend a meeting at the school. Homer pauses on the way to the auditorium to read a sign posted by the...
  24. Replies
    17
    Views
    3,942

    The realization that if I attempt to sleep in and...

    The realization that if I attempt to sleep in and go in to work late my wife will make me get up with the kids! Aaaarrrggh! :D

    David
  25. Replies
    29
    Views
    2,857

    Poll: What do you mean not advanced enough? We're all...

    What do you mean not advanced enough? We're all programmers here and there is no denying that programmers are consistently lazy. In fact, when I use goto statements I'll use shorthand for the...
Results 1 to 25 of 150
Page 1 of 6 1 2 3 4