Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: C++ strings help

  1. Mar 8, 2008 #1
    c++ strings help!!

    1. The problem statement, all variables and given/known data

    Create a C++ program that would ask the user for a username and password. Password field should be masked. If the user exceeded three errors, a string will be seen on the screen which says “ERROR” and exits the program.

    username: ayen_lee
    password: zpobhabzabc21

    2. Relevant equations

    i'm sorry but i don't have any idea about this thing.. it wasn't taught to us clearly.. please help.
  2. jcsd
  3. Mar 8, 2008 #2


    User Avatar
    Science Advisor
    Homework Helper

  4. Mar 8, 2008 #3


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Where are you having problems? Understanding the question? Understanding how the program should behave? Outlining your program? Designing your program? Implementing a specific component of your program?

    We can't effectively help you unless we know what you have already done and where you are having problems.

    (Incidentally, your implementation will necessarily be platform-specific. For example, it is impossible to write that program to run in a linux console with only standard C routines)
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook