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

Re: How to sort alphabet 80 80

You can sort alphabets using its ascii values

Re: How to sort alphabet 80 80

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

Re: How to sort alphabet 80 80

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

Re: How to sort alphabet 80 80

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 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.