Search:

Type: Posts; User: c++noob145

Search: Search took 0.01 seconds.

  1. quick question on deleting a node from a linked list

    I just started learning linked list and nodes and I'm stil getting use to the syntax.

    http://i1330.photobucket.com/albums/w575/academichusslepb/delete_node_zps61afd59b.jpg

    I made this to help...
  2. how do i use the operator+ in class template in my program

    say i have a list of numbers in an array created by a class template


    #include <iostream>
    #include <fstream>
    #include <string>
    #include <iomanip>


    using namespace std;
  3. trying to learn class templates what am i doing wrong

    #include <iostream>
    #include <fstream>
    #include <string>
    #include <iomanip>


    using namespace std;
    const int CAPACITY = 5;

    template <class T>
  4. and Org is just the actual class object that is...

    and Org is just the actual class object that is being passed through as a reference?
  5. Replies
    1
    Views
    735

    how do i copy from a dynamic array

    how do i copy from a dynamic array initialized in a class but with a different memory address

    for example if my array is a dynamic array initialized in a class



    const int CAPACITY=5;
    ...
  6. can someone explain to me what Org is in this code dealing with operator functions

    ostream &
    operator<<(ostream& output, Bank_Acct & Org)

    {
    output<<endl<<"Name "<<Org.name;
    output<<endl<<"The balance is "<<Org.balance<<endl;
    returnoutput;
    }

    I'm learning...
  7. why can't

    why can't << operator be overloaded as a member function is it because that is the way c++ is written and you just can't or is there another reason because I'm confused.
  8. is there an easier or another way to insert things from a txt file

    ok i have text file it has something like this

    item1 5.00 7 no
    item2 6.00 9 yes
    item3 6.00 8 no
    item4 5.00 7 no


    and the list goes on
  9. where do i define a struct in my code using an array class

    is it any different when using a class in my code

    my previous code i define my struct like this



    #include <iostream>
    #include <fstream>
    #include <string>
  10. why can't a static array copy values from a dynamic array

    but it can the other way around

    static_Array= dynamic_Array;

    dynamic_Array = static_Array;


    the second statement works and i'm able to print out both arrays with equal values

    but with...
  11. main difference between pointer and reference and how to use pointers in c++

    i'm still unclear between the difference between using pointer and a reference


    I understood the concept of pointers in c in the class i took last year

    and that was to change the actual value...
  12. so let me get this clear if (x == 0) ...

    so let me get this clear



    if (x == 0)
    cout << "Run this program"<<endl;
    cout <<"Run this too"<<endl;
  13. can someone explain if statements in c++

    Am I suppose to use curly braces in if statements

    In my textbook it shows if statements without curly braces

    like this


    if(x=0)
    cout<< x << "is 0" <<endl;
  14. Replies
    3
    Views
    861

    could someone help me with my code

    Hello everyone, I'm new to this board and fairly new to programming and I'm trying to understand some concepts on arrays so I'm trying to make this little program. I have a future assignment coming...
Results 1 to 14 of 14