Search:

Type: Posts; User: porsche911nfs

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    5,783

    So, I've been tweaking some of my program, and I...

    So, I've been tweaking some of my program, and I am getting stuck in an infinite loop and this is because I'm not decrementing my recursive function by one, I know this. However, when I am calling my...
  2. Replies
    7
    Views
    955

    how would i fix this then?

    how would i fix this then?
  3. Replies
    7
    Views
    955

    that would make sense, haha. Unfortunately, I get...

    that would make sense, haha. Unfortunately, I get the same error message. It has to do something with calling the private vector....
  4. Replies
    7
    Views
    955

    Vector reading data unsuccessfully

    If I have this vector in the private portion of my class I have:


    vector <int> numbers;
    and I have this in my main() function:


    ifstream in_file;
    in_file.open("numbers.dat");
  5. Replies
    18
    Views
    5,783

    all i am asking for some one to give me a little...

    all i am asking for some one to give me a little push in the right direction with some code. Any little bit would help out a ton! I appreciate all of the help!
  6. Replies
    18
    Views
    5,783

    its OK, i'm up for it. would you know a way to...

    its OK, i'm up for it. would you know a way to get me started cpjust?
  7. Replies
    18
    Views
    5,783

    oh yeah, and then this if this is relevant: ...

    oh yeah, and then this if this is relevant:


    void numbers::sort_down()
    {
    numbers = sort_down(numbers);
    }

    thanks again!
  8. Replies
    18
    Views
    5,783

    oh, well regardless of the optimization, i would...

    oh, well regardless of the optimization, i would like to know how to turn this private member function into a recursive function. I want to test the waters, so I know how to do it if need be in the...
  9. Replies
    18
    Views
    5,783

    well recursive functions are supposed to take a...

    well recursive functions are supposed to take a for loop and consolidate them down considerably to make it easier for the programmer and the program ultimately run a tad faster. so to optimize the...
  10. Replies
    18
    Views
    5,783

    but do you know how to help me out by chance?! ;)

    but do you know how to help me out by chance?! ;)
  11. Replies
    18
    Views
    5,783

    better practice, understanding how everything...

    better practice, understanding how everything "under the hood" works
  12. Replies
    18
    Views
    5,783

    Sorting vector via recursive functions

    OK, so here is a basic for loop sorting function that I have coded prior to my current program:


    float max;
    int temp;
    for (int i = array_size - 1; i >= 0; i--) // Reading the...
  13. Replies
    1
    Views
    1,788

    vector.pop_back() Question

    I am trying to remove an element from a vector, and I was told to use vector.pop_back(), but from the tutorial on this site, it claims the member function removes the last element. So if my...
  14. Replies
    9
    Views
    1,165

    you're absolutely right anon. Thanks!

    you're absolutely right anon. Thanks!
  15. Replies
    9
    Views
    1,165

    I'm an idiot. Thanks for your extra set of eyes,...

    I'm an idiot. Thanks for your extra set of eyes, I had a late night ;)
  16. Replies
    9
    Views
    1,165

    sure: #include #include...

    sure:


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

    class CounterType
    {
    public:
  17. Replies
    9
    Views
    1,165

    @ bithub, I fixed this (oops, I definately...

    @ bithub, I fixed this (oops, I definately overlooked that), but I still get the same kind of value outputted.
  18. Replies
    9
    Views
    1,165

    Constructors

    For some odd reason, I'm getting totally bogus answers (like answers in the 2 billions when it should output 2)

    so I believe I'm initializing my term1 object correctly (initializing to 2) but I am...
  19. Replies
    7
    Views
    1,028

    Amen

    Amen
  20. Replies
    7
    Views
    1,028

    its because in this line you have a...

    its because in this line



    you have a semicolon after the if statement. take that out and then put brackets after this and then close that bracket where needed. I haven't checked the code or...
  21. Replies
    10
    Views
    1,283

    OK, i fixed that part of my program, kinda, but...

    OK, i fixed that part of my program, kinda, but now I have a new problem for some reason: My program will not output what I would like for it to be. This is weird, because it seems as if it would be...
  22. Replies
    10
    Views
    1,283

    its a new question though, its not the same...

    its a new question though, its not the same question as previously. i had my disclaimer at the top there explaining the previous post. I am not breaking rules.
  23. Replies
    10
    Views
    1,283

    can you show me an example using pointers please...

    can you show me an example using pointers please grumpy? I want to keep my program consistant if you do not mind. Thank you though for your idea, that would definately make sense.
  24. Replies
    10
    Views
    1,283

    I mean if I had the input "Hello to the world," I...

    I mean if I had the input "Hello to the world," I want to know how to assign a pointer to a word, so that I can do essentially the same thing as before, but have the program output, "world the to...
  25. Replies
    10
    Views
    1,283

    New and improved pointer question

    In my previous pointer post, I have a user input:

    and I converted this string to:
    using this code:


    istringstream break_apart(input);
    input = "";
    while (break_apart >> word)
    {
Results 1 to 25 of 75
Page 1 of 3 1 2 3