|
-
Sep 24th, 2001, 01:39 AM
#1
Thread Starter
Lively Member
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 
-
Sep 24th, 2001, 06:49 AM
#2
Frenzied Member
Store that info in a file. Have a look at the FAQ for an example.
-
Sep 24th, 2001, 02:48 PM
#3
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;
-
Sep 24th, 2001, 05:08 PM
#4
Frenzied Member
Well i'm not sure what he means by later. How much later?
-
Sep 25th, 2001, 04:09 AM
#5
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|