Write a program that can sort integers, decimals, and characters from ascending and descending orders.
The program has to use the following C++ features:
- Take input from user
- Use different data types
- Use if statement
- Use while or for loops
- Use arrays
- Define and call functions
- Pass array or pointers to function
- Use function overloading
- Present output to the screen
cout << "The integers in ascending order are:";
for (int x=0; x<3; x++)
cout << " " << array[x];
cout << "the decimals in ascending order are : " << f1 % f2 << endl;
c1 = c1 + 3;
cout << "the characters in ascending oder are " << c1 << endl;
c2 = c2 -6;
cout << endl;
cout << endl;
return 0;
}
it doesn't work. It says f1 & f2 are unidentified.