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...
Type: Posts; User: ajpeters
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...
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...
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...
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...
Thanks, I will work on and try to get a tougher question.
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...
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
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 >>...
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...
Bottom Posted reply
Does the standard std::sort sort the whole class? simple case listed
Class School
{
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,...