Search Results

Showing results 1 to 9 of 9
Search took 0.01 seconds.
Search: Posts Made By: compumasta
Forum: C++ May 9th, 2008
Replies: 13
Views: 1,612
Posted By compumasta
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
Posted By compumasta
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
Posted By compumasta
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
Posted By compumasta
quite literally everything works except the sorting...
Forum: C++ May 9th, 2008
Replies: 13
Views: 1,612
Posted By compumasta
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
Posted By compumasta
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
Posted By compumasta
havent learned classes yet, so i dont really follow what your doing.
Forum: C++ May 9th, 2008
Replies: 2
Views: 421
Posted By compumasta
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
Posted By compumasta
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...
Showing results 1 to 9 of 9

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC