Question about Video Game Consoles & Games

1 Answer

Name sorting using c++

Can you please write c++ program that will accept 10 records of name in sort ascending and descending order. thanks

Posted by on

  • Benjamin Patri
    Benjamin Patri May 11, 2010

    I know c++ but I think that if this is a homework assignment, then for one you should do it yourself. You just need to use a strut. It is pretty simple and then you just need to write a function to sort them and you may need a few other functions but I will let you figure it out. Let me know if I am right on this being a homework assignment. If you start it, I would consider looking at it but I won't do it for you.



1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points


    An expert that got 20 achievements.


    An expert that got 10 achievements.


    An expert that got 5 achievements.

  • Master
  • 3,037 Answers

Since you haven't replied for a week, I assume you didn't want my help and so I expect that you don't rate this solution. If you still want help, I will provide it, but I won't write what could potentially be a homework assignment. I can give you guidance if you get stuck. good luck

Posted on Nov 19, 2008

  • Kaleb Hawkins Oct 05, 2012

    I think he was expecting spoon feeding...



1 Suggested Answer

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

a 6ya Technician can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repair professionals here in the US.
click here to Talk to a Technician (only for users in the US for now) and get all the help you need.

Posted on Jan 02, 2017


Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

1 Answer

When I save a word document file to "Documents" they are no longer being saved in alphabetic order? Whats gone wrong and how do I fix it?

When you open that folder ( or any other), you have the option to sort by file name, file type, date, etc... Click on name at the top, and it will switch to sorting that way. Click it again to change from ascending to descending and vice versa.

Nov 12, 2012 | Acer Aspire™ T180 PC Desktop

1 Answer

I'm following all of the steps to sorting a list - but when I go back to look at it, it did not sort. Please help!

Enter the data in any order in your list. Press [2nd][Quit] to exit the data editor.
In Main screen, press STAT, select SortA( for ascending or SortD( for descending order.
The command echoes on main screen as SortA(. Press [2nd][1] for L1 or 2nd 2 for L2. Close parenthesis and press ENTER. The L1 list or the L2 list will be sorted.
If the list are linked you must sort them together. In that case the syntax is SortA( L1,L2) ENTER.The list will be sorted according to the order in L1.

Sep 10, 2011 | Texas Instruments TI-83 Plus Calculator

1 Answer

Make a program that will accept tthe size of an array (number must be greater than). Enter and fill the array with numbers then sort in descending order (largest to smallest). Display the unsorted and...

coding in C++

#define max 50

void main()
int arr[max],size=0;
int i=0,j=0,temp;
cout<<"Enter the size of array(less than or equal to 50)";
} while(size>50);

cout<<"Enter a number";

for( i=1;i<size;i++){
temp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = temp;


cout<<”Array in descending order”;
return 0;

Mar 09, 2010 | Computers & Internet

1 Answer

How to sort the number data in order in L1 for ex L1 -> L1 3 2 2 3 7 4 4 5 5 7 like that thanks

There are two functions available for sorting lists. Access them via [2nd] [List] "OPS".

SortA(list) sorts the list into ascending order.
SortD(list) sorts the list into descending order.

Jan 21, 2010 | Texas Instruments TI-84 Plus Calculator

1 Answer

Doesn't remember there's a Header Row

You can try to select all data (except for the entire row which contain your header) and try to sort thru columns. This can sorted in ascending or descending order.

Jul 17, 2009 | Microsoft EXCEL 2004 for Mac

1 Answer

Autofilter ceases to work on large Excel 2003 spreadsheet

Sounds like there is a gap between the filter heading and the column data. That's the only time I've seen suggested data missing from the drop-down.

Jun 16, 2009 | Microsoft Computers & Internet

1 Answer

May problem is "inputting four numbers and get the minimum number of them, and would be outputting the number in ascending order, BUT skipped the number end in zero and zero javax swing"please...

/* REXX is a better programming language than Java with Swing */
data = '11 10 0 3 12'

filtered = ''
do while (data > ' ')
parse var data value data
if left(reverse(value),1) = '0' | (value % 10 = value / 10) then iterate
if value = 0 then do; say 'Excluding:' value; iterate; end
filtered = filtered value
say 'After filtering, numbers are:' filtered
keep = filtered

parse var filtered smallest filtered
do while (filtered > ' ')
parse var filtered value filtered
if value < smallest then smallest = value
say 'Smallest value is:' smallest

n = words(keep)
do j = 1 to n
sorted.j = word(keep,j)

say 'Smallest to largest:'
do j = 1 to n
do k = (j+1) to n
if sorted.j <= sorted.k then iterate
t = sorted.j
sorted.j = sorted.k
sorted.k = j
say j sorted.j
say 'Done:'

Access to download REXX for your PC (Windows or Linux).

Jan 29, 2009 | Computers & Internet

1 Answer

I have a problem in sorting

If your using windows:
Open cmd.exe (program files>accessories>command prompt)
use the sort command in this syntax:

sort "path name and or file name"

you may also use file exports like this for example:

sort birthdays.txt > sorted birthdays.txt (single forward will write over old files and make new ones)
sort birthdays.txt >> sorted birthdays.txt (use double forwards to made amendments to the file)

the "/R" function will reverse the sort order, for example:

sort /R birthdays.txt

thats all, hope this helps. I cant do much else with the information given.

Jan 26, 2009 | Computers & Internet

1 Answer

What are the source codes for making records in C++?

i need drivers for Sonny VGN-NS150D : WIN XP PROFFENAL SP2

Jan 08, 2009 | Computers & Internet

1 Answer

Sort incoming time for received e-mails

Depending on what client you are using, clicking on the "triangle" in the date column toggles between sorting ascending and descending.


Jul 22, 2008 | Microsoft Office Outlook 2003 for PC

Not finding what you are looking for?
Video Game Consoles & Games Logo

Related Topics:

282 people viewed this question

Ask a Question

Usually answered in minutes!

Top Video Game Consoles & Games Experts

James Wishart

Level 2 Expert

122 Answers


Level 3 Expert

77169 Answers

Brad Brown

Level 3 Expert

16387 Answers

Are you a Video Game Console and Game Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides