"Randi" <> wrote...
> Whoa there,
> I am not a kid trying to get an answer for an assignment. I am a 38 year
> old student taking my required C++ class for my IT degree. I am also a
> member of Phi Theta Cappa with a 3.8 GPA, trying to study for an exam
> tomorrow. These are practice problems to help us study. Here is my code
> for the for loop. How would you make this work taking input from a file.
I am sorry, Kelsey [or "Randi", or whatever],
With all due respect to your age, effort, and prior achievements,
you seem to be missing an important part of this whole newsgroup
thing. If you want others to see your code and recommend how to
change it, you _got_to_post_it_. I can't see a damn thing. Stop
writing "here is my code" and just copy and paste the code into
the message.
We can try to figure this one out, you just need to help us help you.
BTW, have you already read about 'ifstream' as I suggested?
(and it's Phi Theta _K_appa, isn't it? Just checking...)
>
> Thanks,
> Kelsey
>
> "Victor Bazarov" <> wrote in message
> news:bohsb.128304$9E1.638773@attbi_s52...
> > "Randi" <> wrote...
> > > I am having problems with this question: Write a C++ while statement
> that
> > > will input numbers from a file until the end of file is reached.
Output
> > the
> > > lowest number in the file.
> >
> > There is no question here. It looks much more like an assignment.
> > Have you tried asking your teacher about it?
> >
> > > Ok, I do understand the logic, I believe the following for loop solves
> it
> > > from keyboard input.
> >
> > Which "following for loop" are you talking about?
> >
> > > But how do you point to any given value from a file.
> > > You can't assign anything to a variable. Little lost on this one.
> >
> > To input something from a file you need to open a file. Read about
> > ifstream class in your textbook.
> >
> > Victor
> >
> >
> >
>
>
|