I need help with my c++ code
I wrote the statement that makes it read from a file
"As file is the name of the file"
but he never reads from the file
and while debugging and after executing the the statement it sets the cust.numcust as zero
what can I do??
Thanks in advance
What's wrong with the statements above??
Although the statements above have no syntax errors, the program could not run!!!!
I don't know where is the problem
Did you check if the file was open, as coder777 suggested?
You should post the whole block of code and not just one line.
ok I'll try to post the whole block of code
It's very long
Thanks to you all :)
Finally the file was opened
But I still have a question
the file contains 4 lines of inputs
how can I make it read from the file line b line
till now it reads only the first line
how to make it read the next line each iteration in the loop???