Search:

Type: Posts; User: CASHOUT

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: for loop

    by CASHOUT
    Replies
    3
    Views
    696

    thank you

    thank you
  2. Thread: for loop

    by CASHOUT
    Replies
    3
    Views
    696

    for loop

    for( NODE * p = A.front; p; p = p->next )

    To better understand what I'm working on can someone please explain the condition for this for loop?
  3. Thread: C++ Book

    by CASHOUT
    Replies
    1
    Views
    6,364

    C++ Book

    What's the best C++ book I can buy?
  4. Thread: stack

    by CASHOUT
    Replies
    4
    Views
    914

    Sorry that was a horrible question. I wanted to...

    Sorry that was a horrible question.
    I wanted to know if there was a way to pass a stack as a parameter to a function rather than having to declare it globally.

    I had tried it already and the...
  5. Thread: stack

    by CASHOUT
    Replies
    4
    Views
    914

    stack

    Can you declare a stack globally?

    stack< int > stk;
  6. Replies
    6
    Views
    2,127

    I get what you mean now. Thank you

    I get what you mean now. Thank you
  7. Replies
    6
    Views
    2,127

    after removing the extra \ : string folder =...

    after removing the extra \ :


    string folder = "C:\Users\CASHOUT\Desktop\week8\folder\test1.txt";

    Now I'm being told:
    Error: incorrectly formed universal character name
  8. Replies
    6
    Views
    2,127

    ifstream function

    The test file for this function is located on my desktop in a folder.

    Is the syntax correct when (string folder) is being set to the test file at the file location?



    ifstream get_ifs( ) ...
  9. Replies
    23
    Views
    2,635

    You might want to think about removing those...

    You might want to think about removing those return 0 statements from your if statement blocks.

    return 0 should only be used at the end of your program.

    You can use break points to achieve...
  10. Replies
    12
    Views
    1,485

    operator =

    After applying this optional part to the end of function main()


    cout << "\n\nOPTIONAL PART\n";

    ld = la;
    cout << "\nla contains:\n" << la << '\n';
    cout << "\nld contains:\n" << ld...
  11. Thread: arity

    by CASHOUT
    Replies
    1
    Views
    1,896

    arity

    If the arity of the “+” operator is 2, why is there only one formal parameter in operator+’s function header?


    #include <iostream>
    #include <string>

    using namespace std;

    const int SIZE =...
  12. Replies
    12
    Views
    1,485

    The debugger helped open my eyes to the problem,...

    The debugger helped open my eyes to the problem, and in the process became my new best friend.
    Thank you.

    I have more questions but I'm going to ask my new best friend for the answers first.
  13. Replies
    12
    Views
    1,485

    I'll keep working with the debugger. Should my...

    I'll keep working with the debugger.
    Should my main focus be on debugging push_front()?
  14. Replies
    12
    Views
    1,485

    Thank you for pointing that out. void...

    Thank you for pointing that out.


    void List::push_front( const string &s )
    {
    // p points to a new node
    Node *p = new Node( s, 0, head );

    if( head == 0 ) //...
  15. Replies
    12
    Views
    1,485

    Okay so my first question is why push_front...

    Okay so my first question is why push_front properly pushing "mom" to the front of the list but not pushing "hi" to the frint of the list? instead "hi" is being pushed to the back of the list.
  16. Replies
    12
    Views
    1,485

    methods for class List

    Creating the methods for class List

    main.cpp

    #include "List.h"


    int main( )
    {
    List la; // create list la
  17. Replies
    2
    Views
    791

    Class inheritance

    Does this statement make sense in regards to the following program? Be gentle :)

    (Derived class employee)’s header takes an argument to (base class person) which gives it access to (base class...
  18. Replies
    16
    Views
    2,992

    Okay I will. I appreciate your patience.

    Okay I will. I appreciate your patience.
  19. Replies
    16
    Views
    2,992

    I see what you mean about coping over the member...

    I see what you mean about coping over the member variables.

    I'm still getting an unhandled exception.

    Why is money being copied over twice??



    #include "List.h"
  20. Replies
    16
    Views
    2,992

    The program no longer gives an error after...

    The program no longer gives an error after deallocation, but the output is still unfavorable.
    Rewriting the copy constructor and pop_front produced very little positive results, even though it...
  21. Replies
    16
    Views
    2,992

    Great my compiler crashed again. I gotta reboot....

    Great my compiler crashed again. I gotta reboot. Why does it keep happening?? gosh
  22. Replies
    16
    Views
    2,992

    #include "List.h" ...

    #include "List.h"

    /*******************************methods for Node*******************************/

    // constructor: init. a Node
    Node::Node( const string...
  23. Replies
    16
    Views
    2,992

    The output seems to be favorable now, but after...

    The output seems to be favorable now, but after the destructor deallocates the list and prints the deallocation to the screen an error is recognized.

    Unhandled exception

    CXX0017: Error: symbol...
  24. Replies
    16
    Views
    2,992

    Elysia, thank you very much for taking the time...

    Elysia, thank you very much for taking the time to help me understand the logic. I appreciate you.
  25. Replies
    16
    Views
    2,992

    My attempts at creating a copy constructor in...

    My attempts at creating a copy constructor in methods.cpp has gotten me; error: function will cause runtime stack overflow (line 47).



    #include "List.h"
    ...
Results 1 to 25 of 88
Page 1 of 4 1 2 3 4