no I did not miss them, I could not view the info from the file after compiling it with either solution. maybe it works but I cant' see the results like I could before nothing appears but thank you...
Type: Posts; User: Jessica
no I did not miss them, I could not view the info from the file after compiling it with either solution. maybe it works but I cant' see the results like I could before nothing appears but thank you...
I guess I will just turn it in. It looked fine until I noticed the output added an the last score again and I have spent 5 hours playing with it to get it to come out right
Yes
any ideas?
My program works the only problem I am having is that when it reads the end of file it adds the last score to the total again. here is my program what have I done wrong with.eof?
#include...
I can use this even if the variable are coming from a data file
I guess my main question would be is do i use a decimal point (14.59) instead of a colon (14:59) to represent military time 2:59 pm
I am not completely finished yet but here it is
[code]
#include <iostream>
#include <fstream>
#include <cctype>
void getinfo(int&length, double& time, double& cost, char& day, char& day2)\...
I have to do a phonebill with the information in a data file. and I have to use military time and I am always getting errors where the : is.
I have an assignment on a phone bill and I am havig a hardtime understacnding the time aspect of my program. does any one know where I can get help in the tutorials.:D
What is wrong withthis here is the error and the code?
hw6.cpp: In function `void getinfo(int &, double &, double &, char &, char &
)':
hw6.cpp:40: parse error before `else'
line 40 has an * to...
Thanks I am learning this in school and the don't have a chapter on compiling errors in the book so I will be back to ask more questions when I can't figure it out for myself.:D
I put asterisks where my shadows occur.
void getinfo(int& length, double& time, double& cost, double weekendrate, double eveningrate, double dayrate)
{
ifstream in;
...
I am a beginner in C++ programming and I am always having problems with compiling errors and what they actually mean so that I can fix it.
my current confusion is ;
: declaration of `length'...