Search:

Type: Posts; User: ajpeters

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,007

    vector sort info

    I have been using the book by Deitel plus doing google searches. Most tutorials only talk about the 2 arguements. devshed, about etc. Also look at Linux documentation. I will check into the other...
  2. Replies
    10
    Views
    1,007

    thanks, it is starting to make sense

    thanks, I think I am starting to understand. I have created sort by name and sort by tuition and it works.

    sorry about missing the comment on generalizing the sort. .

    Where is there...
  3. Replies
    10
    Views
    1,007

    quick query

    I assume "Tuit ionSort" is tuitionSort?

    and to sort by namde I change Get_Tuition to Get_Name? I will try of course, but just verifiying?

    Best to have a function for each type of sort, or...
  4. Replies
    10
    Views
    1,007

    getting sort to work

    I am using bloodshed C

    I got the reverse to work in the following sample, but the sort blows all to h* in the compile. Where did I go wrong


    #include <cstdlib>
    #include <iostream>
    #include...
  5. Replies
    10
    Views
    1,007

    thanks.

    Thanks, I will work on and try to get a tougher question.
  6. Replies
    10
    Views
    1,007

    Need turotial/help class array/vector

    It has become apparent to me that I do not understand the rleation ship of a class array and a vector.

    Assume I have the following and I want to change it to vector format


    #include...
  7. Replies
    11
    Views
    1,869

    I think I need to start new tread.

    I believe I do not understand the releationship of vectors and class arrays. I will start a new tread so I can start get back to this one when I have a couple basics
  8. Replies
    11
    Views
    1,869

    Yes, in fact I have compiled and run a couple. ...

    Yes, in fact I have compiled and run a couple.

    What do I replace
    vector<string> names;
    with when I I use the school class from above?

    what do I put for names below
    while (inName >>...
  9. Replies
    11
    Views
    1,869

    I can do a sort, but need to sort a array of classes

    Thanks for the help, but what I need is an example of how to sort a class array or structure array.

    The only way I seem to get it to work is by using || arrays. Treating both name and tuition as...
  10. Replies
    11
    Views
    1,869

    Bottom Posted reply Does the standard...

    Bottom Posted reply




    Does the standard std::sort sort the whole class? simple case listed


    Class School
    {
  11. Replies
    11
    Views
    1,869

    New Sort an Array of Classes

    I am new to C++. I am look for the best way to sort a structure or class array. (I hope I am using the right terms

    Problem
    I have a || array of 5 items with name=(john, jim, danny, spencer,...
Results 1 to 11 of 11