No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
not sure about this myself but maybe this will help, http://wiki.allegro.cc/index.php?title=Windows,_Visual_Studio_2010_and_Allegro_5
for starts have you seeded rand(); I include time and use the very second in time the seed is set as the seed. This will let the rand() statment seem more random. without seeding it you will get the same numbers every time the program is ran.
this will reorganize your array into smallest to largest. now just out put 0-9 or 9-0 depending on function a or b for(i=0;i<size;i++) { for(j=0;j<size-1;j++) { if(array[j]>array[j+1]) { sort=array[j]; array[j]=array[j+1]; array[j+1]=sort; } } }
The End.
markaburlingame