Results 1 to 5 of 5

Thread: how do I "Store" information for later use?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    82

    how do I "Store" information for later use?

    Say a program asks for some information, for example

    yoName
    yoHoursWorked
    yoPayrate
    theyTake

    as the program takes the intered information and stores it for use later

    So eventualy you will end up with something like below printed at the command line:

    Well, yoName, that yoHoursWorked hours you worked this week at a yoPayrate got you $92.01 before taxes, and after a theyTake percent tax rate, you ended up with $84.34 Total and a loss of $7.67! Ouch!
    If you think I am wierd, then thats YOUR problem!

    -----------------------------------

    I keep snakes and lizards, wanna know more? PM me

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Store that info in a file. Have a look at the FAQ for an example.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Megatron
    Guest
    If it's something as short term as that, couldn't you just use variables?
    Code:
    char* sName;
    float fPayRate;
    
    cout << "Enter name: ";
    cin >> sName;
    cout << "Enter pay rate: ";
    cin >> fPayRate;

  4. #4
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Well i'm not sure what he means by later. How much later?
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    82
    Never mind, I figured it out
    I was jus typing the code wrong
    If you think I am wierd, then thats YOUR problem!

    -----------------------------------

    I keep snakes and lizards, wanna know more? PM me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width