Forum: C++ May 9th, 2008 |
| Replies: 13 Views: 1,612 thank you sir. it works now. we were told that there would be no students with the same last name, so that wasnt an issue, but thanks for finding it.
thanks for you help! |
Forum: C++ May 9th, 2008 |
| Replies: 13 Views: 1,612 ahh but see thats the problem. it only sorts them alphabetically by the first letter and not the leters thereafter too.
its still not quite right, see how brown comes before billy?
thats not... |
Forum: C++ May 9th, 2008 |
| Replies: 13 Views: 1,612 ill give you the data because the files i use dont have any extensions and i do not know which ones will still keep everything in order.
(the names are completely made up...
input 1
567 white... |
Forum: C++ May 9th, 2008 |
| Replies: 13 Views: 1,612 quite literally everything works except the sorting... |
Forum: C++ May 9th, 2008 |
| Replies: 13 Views: 1,612 the entire program you mean?
oh and also, using bubblesort was a requirement for this program...
///////////////////
//
//This program will use filestreams to read in some information... |
Forum: C++ May 9th, 2008 |
| Replies: 13 Views: 1,612 i tried implementing your code into my program and it does compile without any errors. unfortunately the same problem exists when it sorts the names it still only sorts them by the first letter and... |
Forum: C++ May 9th, 2008 |
| Replies: 13 Views: 1,612 havent learned classes yet, so i dont really follow what your doing. |
Forum: C++ May 9th, 2008 |
| Replies: 2 Views: 421 yes, if you know the number of items in the file, try using a 'for' loop, if not, try a while loop. either way, the read command you used will not fill the array properly. |
Forum: C++ May 9th, 2008 |
| Replies: 13 Views: 1,612 struct if1
{
string idnum;//id number for the student
string lastname;//last name of student
string firstname;//first name of student
int examscore[maxexam];//array of all the exam... |