Troubleshooting

This is a discussion on Troubleshooting within the C++ Programming forums, part of the General Programming Boards category; I have a few questions. I have to write a program which draws data from a file, and compares two ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    5

    Troubleshooting

    I have a few questions. I have to write a program which draws data from a file, and compares two strings, character by character. If the characters match, is counts as 'correct'. If not, then it counts as 'incorrect'. Then I must count the number correct, and convert that into a percentage.

    1.) How do I have the user input and call a file from the keyboard?

    2.) How do I compare the srings character by character without the program ending as soon as it encounters a mismatch?

    3.) How do I count the number of correct answers?

    Thanks for any help you can offer.

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    It would appear that all three of the above questions are simply asking, "How do I create this program?" So my answer to you is, "Learn C++".

    This sounds an awful lot like a school assignment that you are unprepared for. Try writing some of this program on your own to show us that you're not here because you've slacked off until the last minute, post your code and ask any questions you can't do on your own, and then you can expect to recieve some help.

    edit:

    Grading Program

    I'm closing this thread because you're asking for help on the same program. Please limit yourself to one thread per problem. You may find some help in the tutorials on this site.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Troubleshooting Input Function
    By SiliconHobo in forum C Programming
    Replies: 14
    Last Post: 12-05-2007, 06:18 AM
  2. Troubleshooting code
    By bcianfrocca in forum C++ Programming
    Replies: 11
    Last Post: 11-17-2005, 04:46 PM
  3. Obscure errors, troubleshooting, anyone?
    By Golbez in forum Game Programming
    Replies: 5
    Last Post: 11-02-2002, 10:29 PM
  4. troubleshooting user's input mistakes
    By jagerhans in forum C++ Programming
    Replies: 2
    Last Post: 11-24-2001, 11:41 AM

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