Homework Help

This is a discussion on Homework Help within the C++ Programming forums, part of the General Programming Boards category; Hi. I'm new to the forum and I desperately need help with my Intro to Programming Homework. I missed the ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    3

    Angry Homework Help

    Hi. I'm new to the forum and I desperately need help with my Intro to Programming Homework. I missed the class on text files and our Assignment is as follows:
    Generate a text file using (A-Z), (a-z),(0-9) and the SPACE characters.
    Sort the text file and print the sorted file to the screen.
    My question is how do I put the required characters in the file, open the file, print out to screen, and more importantly how do I sort my text file. Any help would be greatly appreciated.

  2. #2
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Hmm, well, it would help if you got a book or looked it up on an online tutorial...
    To print something to screen:
    cout << "this is printed to the screen";

    To use files:
    #include <fstream>

    To get your answer:
    Search the board.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Homework
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 11-03-2001, 03:39 PM
  2. Homework
    By kermi3 in forum C Programming
    Replies: 10
    Last Post: 09-27-2001, 04:49 PM
  3. Homework
    By kermi3 in forum C++ Programming
    Replies: 15
    Last Post: 09-26-2001, 03:16 PM
  4. Homework
    By kermi3 in forum Windows Programming
    Replies: 5
    Last Post: 09-15-2001, 11:48 AM
  5. Homework
    By kermi3 in forum C Programming
    Replies: 0
    Last Post: 09-10-2001, 01:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21