Sorting Alphabetically

Entering and Sorting

Page 1 of 1

8 Replies - 807 Views - Last Post: 13 May 2009 - 11:45 PM Rate Topic: -----

Topic Sponsor:

#1 britainweyant  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-May 09

Sorting Alphabetically

Post icon  Posted 11 May 2009 - 05:55 AM

I need a program that will request 20 words to be sorted alphabetcially. Can anyone help with this?
Is This A Good Question/Topic? 0
  • +

Replies To: Sorting Alphabetically

#2 r.stiltskin  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1800
  • View blog
  • Posts: 4,874
  • Joined: 27-December 05

Re: Sorting Alphabetically

Posted 11 May 2009 - 06:28 AM

Yes, just as soon as you write it.
Was This Post Helpful? 0
  • +
  • -

#3 Seth  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 39
  • Joined: 01-December 06

Re: Sorting Alphabetically

Posted 11 May 2009 - 09:27 AM

Read this: C/C++ Forum Rules
Was This Post Helpful? 0
  • +
  • -

#4 britainweyant  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-May 09

Re: Sorting Alphabetically

Posted 12 May 2009 - 05:22 AM

View Postr.stiltskin, on 11 May, 2009 - 05:28 AM, said:

Yes, just as soon as you write it.



I'm not really sure where to go from here at all.


#include <iostream.h>
#include <conio.h>
#include <string.h>

int main()
{

textbackground(WHITE);
textcolor(GREEN);

clrscr();
char ln[10][20];
char name[10][25];
int i,j;


cout<<"Input The Last Names You Wish To Enter:\n"<<endl;



for (i = 0; i<=19; i++)
{
cout<<"\nLast Name"<<i+1<<":";
cin>>name[i];
}


cout<<"\nThe customers names are:"<<endl;

for (j=0;j<=19;j++)
{
cout<<name[j]<<endl;
}


getch();



I'm really not sure what to do and how to sort the words that are entered.

This post has been edited by britainweyant: 12 May 2009 - 05:29 AM

Was This Post Helpful? 0
  • +
  • -

#5 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 983
  • View blog
  • Posts: 5,125
  • Joined: 28-September 06

Re: Sorting Alphabetically

Posted 12 May 2009 - 05:48 AM

Did you attend your classes?
Did you keep notes?
Did you read your textbook?

Your teacher would not set this homework unless they thought you and your classmates had been prepared to do it.

You have to do some work to get any help here.
Was This Post Helpful? 0
  • +
  • -

#6 britainweyant  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-May 09

Re: Sorting Alphabetically

Posted 13 May 2009 - 05:21 AM

View Postjanotte, on 12 May, 2009 - 04:48 AM, said:

Did you attend your classes?
Did you keep notes?
Did you read your textbook?

Your teacher would not set this homework unless they thought you and your classmates had been prepared to do it.

You have to do some work to get any help here.



Because of you, I no longer have any interest in ever getting into anything code related ever again.

I honestly got on for help. Not embarassment.

If I wanted that I could go elsewhere.

And if I knew what I was doing, obviously I wouldn't be on this forum.


Thanks.

This post has been edited by britainweyant: 13 May 2009 - 05:28 AM

Was This Post Helpful? 0
  • +
  • -

#7 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 983
  • View blog
  • Posts: 5,125
  • Joined: 28-September 06

Re: Sorting Alphabetically

Posted 13 May 2009 - 05:48 AM

View Postbritainweyant, on 13 May, 2009 - 04:21 AM, said:

Because of you, I no longer have any interest in ever getting into anything code related ever again.


I hope whatever you choose to do next suits you better and you find it more to your taste.

But you will find that everything in life requires you to work at it and put in the effort required to master it. Nothing worth having comes for free.

Good luck with whatever you choose to do next.
Was This Post Helpful? 0
  • +
  • -

#8 IngeniousHax  Icon User is offline

  • |>|20-514<|{3|2

Reputation: 62
  • View blog
  • Posts: 1,206
  • Joined: 28-March 09

Re: Sorting Alphabetically

Posted 13 May 2009 - 11:36 PM

o.O;; Just a question, how is that really an embarrassing reply? It's basically just making sure you have been attending class and been paying attention. IDK, I guess thats what weeds people out.
Was This Post Helpful? 0
  • +
  • -

#9 no2pencil  Icon User is offline

  • 2 girls, 1 club
  • member icon

Reputation: 3030
  • View blog
  • Posts: 22,935
  • Joined: 10-May 07

Re: Sorting Alphabetically

Posted 13 May 2009 - 11:45 PM

View Postbritainweyant, on 13 May, 2009 - 06:21 AM, said:

View Postjanotte, on 12 May, 2009 - 04:48 AM, said:

Did you attend your classes?
Did you keep notes?
Did you read your textbook?

Your teacher would not set this homework unless they thought you and your classmates had been prepared to do it.

You have to do some work to get any help here.


Because of you, I no longer have any interest in ever getting into anything code related ever again.

I honestly got on for help. Not embarassment.

britainweyant : I am sorry that your experience here on Dream In Code was not a pleasurable one. In janotte's defense, if you look at the post progression, you simply made a 1 sentence post asking for help on a standard homework assignment. We generally see a number of requests on this specific assignment every week, & most of them are of people asking for the code to simply be provided.

Dream In Code is about sharing & furthering education & coding experience. We are not a drive through coding service, where you can drop off a request & expect the code in an hour or two.

Now, I see that you did post some code. Assuming that this is the code you have started on your assignment, with your initial post :

Quote

I need a program that will request 20 words to be sorted alphabetcially. Can anyone help with this?

What of this request correlates to your code? What is or isn't working, can you be little more clear on what you need help with?

Just posting the assignment doesn't tell us much as to where you are at ;)

That's like me going to mechanic & saying "There's a clank sound... what's wrong?!"

You'll find that we'll be more than happy to help you out. You just have to meet us half way.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1