I need a program that will request 20 words to be sorted alphabetcially. Can anyone help with this?
Sorting AlphabeticallyEntering and Sorting
Page 1 of 1
8 Replies - 807 Views - Last Post: 13 May 2009 - 11:45 PM
Topic Sponsor:
Replies To: Sorting Alphabetically
#2
Re: Sorting Alphabetically
Posted 11 May 2009 - 06:28 AM
Yes, just as soon as you write it.
#4
Re: Sorting Alphabetically
Posted 12 May 2009 - 05:22 AM
r.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
#5
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.
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.
#6
Re: Sorting Alphabetically
Posted 13 May 2009 - 05:21 AM
janotte, 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.
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
#7
Re: Sorting Alphabetically
Posted 13 May 2009 - 05:48 AM
britainweyant, 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.
#8
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.
#9
Re: Sorting Alphabetically
Posted 13 May 2009 - 11:45 PM
britainweyant, on 13 May, 2009 - 06:21 AM, said:
janotte, 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.
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.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|