i know how to sort a few number but i dont know to sort alphabet. anybody can help me??? plez;-)

You can sort alphabets using its ascii values

You can sort alphabets using its ascii values

what u mean???the flow code???sorry coz i'm 1st year at university so i dont know about this...:-p

what u mean???the flow code???sorry coz i'm 1st year at university so i dont know about this...:-p

You can make use of qsort() or std::sort

what u mean???the flow code???sorry coz i'm 1st year at university so i dont know about this...:-p

each alphabet has some ascii value associated with it .
You can find it by following code
char a='A';
int i=a;
cout<<i;

this will give output as 65 , similarly for a,b...
Thus sorting can be similarly as for integers

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.