I am very new to programming. I am trying to use STL sorting (#include<algorithm>) to sort an array alphabetically, but it is not working.
Here's my code:
What am I doing wrong???Code:char num="F A C B D E G"; sort(num,num+7); for (int i=0;i<7;i++) cout<<num[i]<<" ";