Tuesday, November 15, 2011

NEED HELP!! need to know how to start a program for c++. thanks!!!?

Write a program which consists of four functions called from the main( ). The first function will display the user heading; the second function will prompt the user to fill an array of strings (a two dimensional array of char) with a number of words and indicate the preference for an ascending or descending sort. The third function will perform the desired sort using the Exchange Sorting technique; the last function will output the contents of the sorted array to the screen. All variables should be defined in main ( ) and ped as needed to the other functions. Use a null string (“”) value to terminate data entry in your Input_Words function. This function should also ign a value to a variable (e.g. num_words) that tracks the number of words to be sorted. DO NOT allow the user to input more than the maximum number of words.

No comments:

Post a Comment