1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

    malawi_glenn

    User Avatar
    Science Advisor
    Homework Helper

  4. Mar 8, 2008 #3

    Hurkyl

    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)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: C++ strings help
  1. Strings in C (Replies: 6)

  2. Help with C++ strings (Replies: 3)

Loading...