Thread: how to sort out an array?

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    30

    how to sort out an array?

    hello! let's say i have an array called "number[?]" and it's going to store several different values. what i want to do is to sort it out, for example from least to greatest so when i use "cout" to output that array, it will show values from least to greatest. how do i do this? another question, how do i accept inputs from users without displaying their input in console application? i tried using getch() but it only accept one character.

  2. #2
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    search this board....or even check the threads from the past couple of days. This very general topic has been covered many times.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Insertion Sort on Array of Structs
    By n0r3gr3tz in forum C Programming
    Replies: 3
    Last Post: 04-01-2008, 08:28 AM
  2. Using unix command line to sort random array
    By lostmyshadow in forum C Programming
    Replies: 4
    Last Post: 12-11-2007, 07:14 PM
  3. New Sort an Array of Classes
    By ajpeters in forum C++ Programming
    Replies: 11
    Last Post: 09-06-2005, 06:23 PM
  4. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 07:48 PM
  5. Help with an Array
    By omalleys in forum C Programming
    Replies: 1
    Last Post: 07-01-2002, 08:31 AM