Showing results 1 to 9 of 9
Search took 0.01 seconds; generated 2 minute(s) ago.
Posts Made By: compumasta
Forum: C++ May 9th, 2008
Replies: 13
Views: 870
Posted By compumasta
Re: C++ Bubble sort not working with array of records, does work with simple array.

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: 870
Posted By compumasta
Re: C++ Bubble sort not working with array of records, does work with simple array.

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: 870
Posted By compumasta
Re: C++ Bubble sort not working with array of records, does work with simple array.

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: 870
Posted By compumasta
Re: C++ Bubble sort not working with array of records, does work with simple array.

quite literally everything works except the sorting...
Forum: C++ May 9th, 2008
Replies: 13
Views: 870
Posted By compumasta
Re: C++ Bubble sort not working with array of records, does work with simple array.

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 from two...
Forum: C++ May 9th, 2008
Replies: 13
Views: 870
Posted By compumasta
Re: C++ Bubble sort not working with array of records, does work with simple array.

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: 870
Posted By compumasta
Re: C++ Bubble sort not working with array of records, does work with simple array.

havent learned classes yet, so i dont really follow what your doing.
Forum: C++ May 9th, 2008
Replies: 2
Views: 225
Posted By compumasta
Re: Cn't figure out error

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: 870
Posted By compumasta
C++ Bubble sort not working with array of records, does work with simple array.

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 scores of...
Showing results 1 to 9 of 9

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:01 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC