Thread: Troubleshooting

  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
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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:

    http://cboard.cprogramming.com/showthread.php?t=62804

    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, 07:18 AM
  2. Troubleshooting code
    By bcianfrocca in forum C++ Programming
    Replies: 11
    Last Post: 11-17-2005, 05:46 PM
  3. Obscure errors, troubleshooting, anyone?
    By Golbez in forum Game Programming
    Replies: 5
    Last Post: 11-02-2002, 11:29 PM
  4. troubleshooting user's input mistakes
    By jagerhans in forum C++ Programming
    Replies: 2
    Last Post: 11-24-2001, 12:41 PM