I'm wondering why the below set container code can't sort array of string?
Result sequence of below code is {"B","A","C"} as the sequence of input and I hope to see either {"A","B","C"} or {"C","B","A"} instead.
#include<fstream>
#include<iostream>
#include<string>
#include<stdio.h>
#include<string.h>
#include <set>
using namespace std;
int main()
{
std::set<char*> cell_name;
cell_name.clear();
cell_name = {"B","A","C"};
std::set <char*>::iterator iter;
for (iter = cell_name.begin();iter!=cell_name.end();++iter)
cout << ' ' << *iter;
cout << '\n';
return 0;
}