Thread: sorting characters and output to text file

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    1

    Smile sorting characters and output to text file

    I'm a total newbie having trouble with an assignment for school. The assignment is asking me to write a program that reads the contents of a text file (characters), sort them alphabetically and output the results to a user defined text file. Do I need to use an array to accomplish this? As I said I'm new to C++ and we haven't even learned arrays yet so I'm not sure how to accomplish this assignment. Any help you can provide is greatly appreciated.

    Thanks!

    Below is the link to the assignment instructions:

    http://www.cs.uwm.edu/classes/cs152/.../05/05/05.html

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>As I said I'm new to C++ and we haven't even learned arrays yet so I'm not sure how to accomplish this assignment.<<
    http://www.cprogramming.com/tutorial/lesson8.html
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. Counting the characters from each word from a text file
    By flipguy_ph in forum C Programming
    Replies: 6
    Last Post: 04-27-2009, 05:56 PM
  3. Replies: 8
    Last Post: 12-06-2008, 02:43 PM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM