Search:

Type: Posts; User: Dylan Metz

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,909

    How would the remaining cases look like? I sorta...

    How would the remaining cases look like? I sorta remember my instuctor talking about using either division or modulo(%)?
  2. Replies
    13
    Views
    1,909

    Here is what I have so far: #include...

    Here is what I have so far:

    #include <iostream>#include <string>


    using namespace std;


    //recursive function prototype
    string intToStr(int n);
  3. Replies
    13
    Views
    1,909

    So it would be like this? if(n==0) return 0? ...

    So it would be like this? if(n==0) return 0?

    How would you return it as a string? Also could you also provide some advice on the main function? Would I be using the same main function as I did for...
  4. Replies
    13
    Views
    1,909

    Not sure about static variables. As for intToStr....

    Not sure about static variables. As for intToStr. I haven't started it yet. I would like some help with the base case of the recursive part.
  5. Replies
    13
    Views
    1,909

    We are not allowed to use any functions that are...

    We are not allowed to use any functions that are similar to atoi or itoa. We also cannot use for or while.

    This is my other function that converts the string to an integer:


    int...
  6. Replies
    13
    Views
    1,909

    Need some help on c++ assignment

    I already completed one part of the assignment, but need help on the other part. The assignment was to create two recursive functions. One that converts strings to integers ( which i completed) and...
Results 1 to 6 of 6