bubble sort a character array in alphabetic order in c

前端 未结 5 463
眼角桃花
眼角桃花 2020-12-22 05:24

I\'m trying to bubble sort a character array in alphabetic order. My code is as follows:

#define CLASS_SIZE 10
#include 

void bubbleSortAWrit         


        
5条回答
  •  执念已碎
    2020-12-22 06:04

    #include
    using namespace std;
    int main(){
    cout<<"Enter the size of array";
    int n;
    cin>>n;
    cout<<"enter elements";
    char arr[n];
    for(int i=0;i>arr[i];
    }
    for(int i=0;i

提交回复
热议问题