Thread: car program

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    10

    Lightbulb 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!!!!!!!!!!!!!!!!!!!!!!


  2. #2
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330
    #include <makelanguageeasier.h>

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    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?

  4. #4
    Registered User
    Join Date
    Mar 2002
    Posts
    10
    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...

  5. #5
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330
    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... = )

  6. #6
    Registered User
    Join Date
    Mar 2002
    Posts
    10
    i am in desperate need for help right now... ill pay you to write the program!!!!!!!!!!!!!!!!!!!!!!!

  7. #7
    Registered User
    Join Date
    Mar 2002
    Posts
    12
    i dont think thats what this forum is for... do your own homework...

  8. #8
    Registered User blight2c's Avatar
    Join Date
    Mar 2002
    Posts
    266
    i'll try to help. what do you have so far? are you using the fstream?

  9. #9
    Registered User
    Join Date
    Mar 2002
    Posts
    10
    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!!!!!!!

  10. #10
    Registered User blight2c's Avatar
    Join Date
    Mar 2002
    Posts
    266
    well . . . i said i'd help, i'm really not in the homework biz. just post what you have so far

  11. #11
    Registered User blight2c's Avatar
    Join Date
    Mar 2002
    Posts
    266
    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);
    }

  12. #12
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230
    I'll do your program for you for $35 cash

  13. #13
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    do u happen to have paypal? if so i could help (looks both ways for biosx)*whisper* for $25

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Fixing my program
    By Mcwaffle in forum C Programming
    Replies: 5
    Last Post: 11-05-2008, 03:55 AM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  3. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  4. Need help with my program...
    By Noah in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 07:49 PM
  5. Car Inventory Program
    By florie526 in forum C Programming
    Replies: 8
    Last Post: 11-09-2001, 10:15 PM