CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: heminapatel

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    1,449

    Re: Fibonacci Sequence

    My function is working, but thanks I think I understand what you're trying to say



    int Fibonacci (int n)
    {
    int a = 1,
    b = 0,
    sum;
  2. Replies
    6
    Views
    1,449

    Re: Fibonacci Sequence

    I think I got it I fixed it to be this, but now my issue is I'm asking for it to return the sum for Case B but it's duplicating the last entry i.e. when I put in 5 I get 1, 1, 2, 3, 5, 5. I tried...
  3. Replies
    6
    Views
    1,449

    Fibonacci Sequence

    Can someone throw me a hint on how to only print the end result of an iteration? This is in regards to Case C in the program. I just copied and pasted the loop I have in Case B, but like I said I...
  4. Replies
    11
    Views
    2,505

    Re: Do/While Switch Program

    Thank you so much! When you keep looking at something over and over again you seem to miss something so logical. It works perfect now!
  5. Replies
    11
    Views
    2,505

    Re: Do/While Switch Program

    Figured it out!




    #include <iostream>
    using namespace std;

    void PrintHistory();
    int FirstN();
  6. Replies
    11
    Views
    2,505

    Do/While Switch Program

    For some reason my program doesn't work. When I enter 'E' or 'e' it won't quit the program. Have I done something wrong? I keep looking at it so maybe I'm overlooking something any help would be...
  7. Replies
    18
    Views
    7,044

    Re: The Bumpkins of Bumpus

    The input works wells but I don't really know how to apply the conversion and get the output.

    #include <iostream>
    #include <string>

    using namespace std;

    int main()
    {
    int number, door;
Results 1 to 7 of 7





Click Here to Expand Forum to Full Width

Featured