No errors , it compiles perfectly right now. I am asking questions in original post, need help in making the I - G parts work in the program..... building classes
Type: Posts; User: sierrava06
No errors , it compiles perfectly right now. I am asking questions in original post, need help in making the I - G parts work in the program..... building classes
Been working on this rational number program.
Here is what the program is suppose to do. To me this is one serious program using classes. My problem is when i get to the I , M , R, G part how...
I am getting an unresolved external error for the program below. Any ideas on what is causing this error. I still have to write the program to test these functions.
error LNK2019: unresolved...
i am asking if the data is set with a vector. How would i ask the question and have the program source the right values from the file.
I know how to do cout , cin. I am asking past that???
This must be a bad time of the day for you. I asked the question at the top, not if my main and eof was correct. I can do those corrections , after i get on the right track on my problem.
point taken. just following the book. i still need help with my problem.
salem
one the nag on the main() i have to do it that way for my class.
I know you are well respected in this forum , at least i see you post alot of stuff. But could you at least point a...
Okay in this vector array program I got it to print out the values in the input file number and price. How would i go about havng a question in the bottom somewhere asking a user for an item number...
Thanks for all your help. I got it to work now. It seems the small things tend to cause more trouble than the ones you think are harder.
I appreciate the help guys
latest code still no data prints out get press any key to continue after i enter the number 1 to see the first input. I am so fraustrated with this program. Doing a programming class with no...
i will make that adjustment now. any suggestions on how to get my search at the bottom to only print out the one of the inputs of the terminal information?
didnt the way i do it in the code posted just before your post , do it the non overloading way. I am very confused. attempting to read the link you provided now.
This code compiles , but when i am prompted for which terminal i would like to see. I enter 1 and get press any key to continue.
here is the code:
#include <iostream>
#include <fstream>...
Tonto
I am not following. I attempted to do what you are suggesting. Seems my compiler doesnt like the info part. I think i am missing the boat here. I am very new to this programming stuff.
I agree it needs to be in a loop if you would want to output everything that was input above.
My problem is i need to prompt the user for which terminal they would like to see. I.E. 1 or 2. ...
Zuk I started to go down another route using a class still seems to have the same problems. Any suggestions??
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>...
Thanks again for the suggestions. I put the output inside the loop and did some tests it appears the data gets written over with the next set of questions. Any suggestions on how to get it to keep...
Okay thanks for that great info. I should of caught that , and my compliler should have said something about that. It did i just didnt understand what it was telling me.
here is the revised...
you just got my feet moving. Thanks for the post. I was not seeing that.
Now I just need to figure out how to for example enter two sets of data through the loop above. Data is written to...
Well i got up early this morning and thought maybe i can figure this stuff out. I am still at a stand still.
The command in the program for Ofstream is where my problem lies. The compile gets...
how do i take the values and write them to the file???
infile >> varible >> varible etc..
here is some revised code. the search function doesnt seem to find anything.
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include<cassert>
i dont think a struct would work for what i am attempting to do. I need the program to find the data within the file. I just built the struct still does the same thing shows only the last terminal...
thanks for the suggestions. I still have the same problem, if i you run the program and enter the data for 2 terminals. Only the last one entered comes up after i search for a terminal.
I am writing a program to take in data into a file, close the file. Then re open the file, ask for terminal number person wants to see, program needs to display all information entered for that...