ATM assignment

This is a discussion on ATM assignment within the C++ Programming forums, part of the General Programming Boards category; My teacher just gave us an ATM assignment and today was our 4 week of programming , our teacher hasnt ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    18

    ATM assignment

    My teacher just gave us an ATM assignment and today was our 4 week of programming , our teacher hasnt taught us about file linking or stuff , i wanted to ask that the problem which il be having is that my teacher told us that .

    "When your program starts, it should be displaying a login screen. User will be asked to enter a login and 5 digit pin code. The system verifies the login and pin and displays an error if it is incorrect
    You have to create a array that holds the username and password
    Enter login: example
    Enter Pin code: 12345 "

    I dont know how how will i save the data of a user :$ , when it will ask login or stuff ? how can it be done ? storing data in a text file and then accessing it , please help me out with that part

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,424
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    It seems to me you don't have to store anything in a file. The assignment states you just store it in an array, so it sounds to me like you hardcode it in the application...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Menu
    By Krush in forum C Programming
    Replies: 17
    Last Post: 09-01-2009, 02:34 AM
  2. Assignment Operator, Memory and Scope
    By SevenThunders in forum C++ Programming
    Replies: 47
    Last Post: 03-31-2008, 06:22 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Help with a pretty big C++ assignment
    By wakestudent988 in forum C++ Programming
    Replies: 1
    Last Post: 10-30-2006, 08:46 PM
  5. Replies: 1
    Last Post: 10-27-2006, 01:21 PM

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