Question: WRITE IN C++ : Enter a string through the keyboard (For end use Ctrl+A). The string should be copied into an output file text.txt. Then
WRITE IN C++ :

Enter a string through the keyboard (For end use Ctrl+A). The string should be copied into an output file text.txt. Then open an input file stream to read from the file text.txt. Each character that is a letter or a digit should be stored into an array text2[]. For checking use the functions (isalpha(char) and isdigit(char)). Print the array. Sort the array using all the four sorting algorithms: Selection Sort, Insertion Sort, Bubble Sort and Quicksort. While sorting count the number of steps needed to sort the array with the particular algorithm. Print each number on screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
