-
car program
I need a lot of help!!!!!! I have to write a program that manages a sorted list of cars. If anyone knows what to do to get me started please let me know.. like what header files to include.... please someone help me!!!!!!!!!!!!!!!!!!!!!!
:confused: :eek: :confused: :eek: :mad: :confused: :confused:
-
#include <makelanguageeasier.h>
-
lol @ mullen.
lostgirls...
do you want the list to be read from a FILE?
and do you have to WRITE to the file with ur program?
HOW do u sort it?
-
it is going to be read from a text file... in the text file its in a random order, but when the program runs it has to be printed in alphabetical order...
-
You should look for some alphabetic-sorting info. I had a book that had an algorithm for this in it... but I'm too lazy to look right now... = )
-
i am in desperate need for help right now... ill pay you to write the program!!!!!!!!!!!!!!!!!!!!!!!
-
i dont think thats what this forum is for... do your own homework...
-
i'll try to help. what do you have so far? are you using the fstream?
-
yes we are using fstream.. we are having trouble setting up the header files and how many we need... if you really can help i will email you the outline of what has to be done so you can understand it better... thanks!!!!!!!
-
well . . . i said i'd help, i'm really not in the homework biz. just post what you have so far :)
-
anything yet? . . . i'm logging off. try useing a bubble sort and the following should help
Code:
#include <iostream.h>
#include <fstream.h>
main()
{
char ch;
char filename[20]="a:whathaveyou.txt";
int mode=ios::in;
fstream fin(filename, mode);
if (!fin)
{
cerr<<"error";
}
//bubble sort stuff
fin.close(); //this is a must, don't forget
return(0);
}
-
I'll do your program for you for $35 cash ;)
-
do u happen to have paypal? if so i could help (looks both ways for biosx)*whisper* for $25