Search:

Type: Posts; User: steve_demaio

Search: Search took 0.01 seconds.

  1. Replies
    23
    Views
    7,227

    * File > Journal Properties is really wacky now. ...

    * File > Journal Properties is really wacky now.

    http://img390.imageshack.us/img390/6859/propertieshg1.jpg

    My journal is one entry, 3 words "A new entry."

    * Divorcing on calendar asks me...
  2. Ahh, thank you. That's much clearer now. Here...

    Ahh, thank you. That's much clearer now. Here is one scenario though.

    Take this function:


    double Complex::realPart() const{
    cout << *this << endl;
    return rp;
    }
  3. What does *this mean, I haven't seen it before? ...

    What does *this mean, I haven't seen it before?

    I just looked up mutable. Basically, anti-const.
  4. Can someone explain the use of 'const' in this case

    I was reading my C++ book for class, but it didn't tell how, or why const was used in this case:



    bool String:: operator!() const {
    return length == 0;
    }


    Thanks!
  5. Replies
    29
    Views
    2,506

    No problem, I've had to do a number of programs...

    No problem, I've had to do a number of programs where random values are necessary for my uni coursework so I've refined my approach quite a bit. Even though it is still very simple.
  6. Replies
    29
    Views
    2,506

    #include #include using...

    #include <iostream>
    #include <ctime>
    using namespace std;

    int main() {
    int a;
    srand( time(0) ); // this seeds the rand function
    a = 1 + rand() % 100; // modify as follows
    ...
  7. Replies
    6
    Views
    1,173

    Hehe, I abhor those types of errors, so simple...

    Hehe, I abhor those types of errors, so simple yet alter the program totally.
  8. Replies
    5
    Views
    884

    Ahh, ok. Thanks!

    Ahh, ok. Thanks!
  9. Replies
    5
    Views
    884

    Yeah, dunno why I hit an O. I'm still half...

    Yeah, dunno why I hit an O. I'm still half asleep.

    And it was helpful just because if for some reason the while loop didn't copy over the '\0' then it would insert a new '\0' at the end of the...
  10. Replies
    5
    Views
    884

    Copying one string from s2[] to s1[]

    I have to copy one string from
    const char s2[] to
    char s1[]

    All this is to be done without using the uber elite
    <cstring> library. So no
    strcpy(). This is to be done within a function,...
  11. Replies
    10
    Views
    1,423

    Thanks for the replies. I'll learn ASM after I...

    Thanks for the replies. I'll learn ASM after I get C++ finished off and perhaps Java.
  12. Replies
    10
    Views
    1,423

    Hmm, the way I thought it worked was the compiler...

    Hmm, the way I thought it worked was the compiler takes the code down into machine code. And while the program itself may not recognize it is code. There is still recoverable code from the file...
  13. Replies
    10
    Views
    1,423

    Decompilers?

    Is there such a thing, I have a really ancient game that I'd like to decompile and see if I can't fix a few problems with it.

    Anyone know where to get one?
Results 1 to 13 of 13