
-----------------------------------
simpleerob
Fri Apr 30, 2004 10:25 am

Project Need Help!!! Due May 6- Char arrays and sorting
-----------------------------------
My compiler is pico ---- .cpp
Hi I need help with my term project: I have gotten an out put, but I don't think I formated the program correctly according to the question. If Any one can help me please write back soon, b/c its due thursday May 6th. Here's the question:

You have the following clients for  your consulting firm:
Client -----------------------------------Business Type
                                        
Acme Construction --------------------Machinery design
Johnson Electrical ---------------------Switch manufacturing
Brown Heating and Cooling --------- Boiler design
Smith Switches -----------------------Switch manufacturing
Jones Computers ---------------------Computer sales
Williams Cleaning Equipment --------Machinery sales


To keep track of your clients in an orderly manner, you need a program that can arrange them alphabetically be name or business type. Write such a program using a bubble sort. The input specifications are to read the client and business from a file. Read the requirement of sorting according to a name or business from the key board. The output specifications is to put the arranged list into an output file.


Heres what I have so far:


#include 
#include 
using namespace std;
int main ()
{

const int Num_Rows = 6, Num_cols= 800, LINE =100;
char aa[Num_Rows], bb[Num_cols], cc[6] [LINE];
ifstream infile ("term.dat");
int i;

cout