help getting started

This is a discussion on help getting started within the C++ Programming forums, part of the General Programming Boards category; I want to design a program that prompts a user to enter their name and a grade and prompt them ...

  1. #1
    Unregistered
    Guest

    Question help getting started

    I want to design a program that prompts a user to enter their name and a grade and prompt them to either continue with input or stop input. It will loop until the user has no more entries. Then I want the input to be saved into a .TXT or .DAT file and if possible sort that file by grade. How would I go about starting that? This is all really confusing to me but I'm trying to learn..

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    403

    first learn basic C++

    Code:
    PHP Code:
    bool keepgoing; student_rec rec; do {       ask_name(&rec);       ask_grade(&rec);       save_data(rec); } while( wish_to_continue() ) 
    -design a record or class to hold a name and grade
    -ask_grade/name should prompt them for their grade/name and have them input it into the rec
    -save data should open a file (binary) and use fstream::write
    -wish to continue should ask them for a y or n to continue and return true or false

    (sorting is beyond this, but not that hard)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help getting started :(
    By blackocellaris in forum C Programming
    Replies: 4
    Last Post: 11-05-2006, 05:50 PM
  2. Getting started
    By panzeriti in forum Game Programming
    Replies: 3
    Last Post: 06-28-2003, 10:13 AM
  3. Getting Started
    By UnclePunker in forum Game Programming
    Replies: 3
    Last Post: 04-11-2003, 12:34 PM
  4. How to get started?
    By anoopks in forum Linux Programming
    Replies: 0
    Last Post: 01-14-2003, 02:48 AM
  5. Need help getting started
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2001, 11:08 PM

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