Search:

Type: Posts; User: whiteflags

Search: Search took 0.12 seconds.

  1. Replies
    50
    Views
    24,877

    Not really. You need a base case for the...

    Not really. You need a base case for the recursion which is going to occur. The specializations for those values 1 and 2 are such cases.
  2. Replies
    50
    Views
    24,877

    Apparently. He seemed to post the same thing...

    Apparently.

    He seemed to post the same thing over and over until someone did it for him, no matter what anyone said.

    And frankly, I am a bastard, so you'll have to deal with that.
  3. Replies
    50
    Views
    24,877

    Then I will just point out that you seem content...

    Then I will just point out that you seem content to do his homework for him, which is all you are doing now.

    And as far as what is being taught in school, how do you know? Is it not one of your...
  4. Replies
    50
    Views
    24,877

    I will repeat it: return(0); is a standards...

    I will repeat it: return(0); is a standards compliant statement. Do you really want to argue that?

    Really? Well like I said before, you need parens in many cases where you opt to remove whitespace...
  5. Replies
    50
    Views
    24,877

    You said "wherever I want to use it," well:...

    You said "wherever I want to use it," well: "Proper" is bull......... What if I wanted to use it for an obfuscated code contest? Is it not proper there, as well as far as the standard is concerned?...
  6. Replies
    50
    Views
    24,877

    Then the teachers are wrong, and so are you. ...

    Then the teachers are wrong, and so are you.

    Does


    int main()
    {
    return(0);
    }
  7. Replies
    50
    Views
    24,877

    How are you posting without code tags, anytime? ...

    How are you posting without code tags, anytime?


    #include <iostream>
    using namespace std;

    int main (int argc, char* argv[])
    {
    int fib1 = 0;
    int fib2 = 1;
  8. Replies
    50
    Views
    24,877

    It doesn't matter if you think that is true, it...

    It doesn't matter if you think that is true, it is a fact.

    "return0" would not be correct like "return(0)" or "return 0" is. Thus, parentheses for grouping is not illegal in C++. There is no harm...
  9. Replies
    50
    Views
    24,877

    Actually you would NEED use parentheses any time...

    Actually you would NEED use parentheses any time you needed to distinguish between keywords, such as return, and a token, such as 0, without resorting to white space too, ~Kyo~. It's not strange or...
  10. Replies
    50
    Views
    24,877

    Why is your second attempt so much worse than the...

    Why is your second attempt so much worse than the first one? You were a lot closer before: you only didn't understand how to write a for loop. If you're reading the thread at all, you should have a...
  11. Replies
    50
    Views
    24,877

    OK, let's just assume you knew how to calculate...

    OK, let's just assume you knew how to calculate fibonacci numbers by hand. How many numbers would you have to calculate before you get to the 6th term? How about the 12,047th? You have to count n...
Results 1 to 11 of 11