User Profile
Collapse
-
It justs asks me for information, such as name, address and the info. Then it asks for another entry, Yes or no. If you select no, then it has an indefinite eof. It justs keeps saying name and address..., name and address... and so on. It never shows the results, even if I selected it first before wanting to append the file. -
can't figure out how to finish
I am writing a program for an assignment in which you choose from a menu to append on a file, show the results of the file or exit. However, I can't figure out how to show the results or exit it. Does anyone have any suggestions? It will be much appreciated.
The output needs to look like this:
Name: Joe Smo
Street: 3245 Smith Dr.
City: Town
State: AL
Zip: 94870
Here is my code so far:
...Last edited by sicarie; Oct 20 '07, 11:47 PM. Reason: Code tags are to the right when creating/replying to a post. Please use them. -
So when submitting my program code, so I would need to submit the file with it?Leave a comment:
-
c++ storing and retrieving names and addresses
I am trying to grasp onto this c++. While trying to grasp on, I have to write a program that stores and retrieves a person's name and his address. Would I write a file outside of the program and save it to my c:/ and call for it in my program, or do I add it in to my program and call it later on in the program. -
And for the code tag, I need to type[CODE] where indention needs to go. I just need clarification.Leave a comment:
-
Error 3 error C2601: 'slotMachine::c alculatePayout' : local function definitions are illegal c:\documents and settings\michel e barrett\my documents\visua l studio 2005\projects\s lot machine\slot machine\slot machine.cpp 137
Error 5 error C2601: 'slotMachine::d isplaySpinResul ts' : local function definitions are illegal c:\documents and settings\michel e barrett\my documents\visua l studio 2005\projects\s lot machine\slot machine\slot machine.cpp...Leave a comment:
-
I am sorry, I am new at this. What is CODE tag? My errors were at slotMachine::ca lculatePayout, ""displaySpinRe sults, ""displayTotals , "" insertCoin, ""pullHandl e, ""Random, and ""spinWheel .Leave a comment:
-
slot machine in c++
I need some help. I am getting an error of: local function definitions are illegal. What does this mean? Can anybody help me out a little? Thank you.
Code://Specification: This program simulates a three //wheeled slot machine. Each wheel will randomly //display three numbers. When the numbers on the //wheels match the user is award points. The Slot //machine requires the user to enter tokens to play. #include
No activity results to display
Show More
Leave a comment: