Create a program that will input 5 strings/words. Arrange them in alphabetical order.

Recommended Answers

All 3 Replies

OK, I've done that. Please let me have your teacher's contact details so I can email it directly to him, thus saving you the bother of copy/pasting the solution. You will, of course. fail the course, and maybe get chucked out, but that would be quite reasonable given your attitude.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"

commented: It doesn't necessary that everyone is here to ask for help in there assignments. +0
//Hope This Helps
using namespace std;

int main()
    int size=0,x=0;
    cout<<"Enter The Size of Message ";

    char message[size];
    cout<<"Enter Message ";

    for(int i=0;i<size;i++)
        for(int j=0;j<size-1;j++)
            if(i!=j && message[i]<message[j])
                char temp=message[i];
    for(int i=0;i<size;i++)
commented: Blind leading the blind, almost funny... -3

James is right, Mabdullah. The rules on this forum are pretty clear and he's following them and you're violating them. He's been here quite a while, so one would assume he knows how things work here, especially when he linked the rule he was referring to.

And your program has a very serious error in it as well.

Be a part of the DaniWeb community

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