Forum: C++ Mar 12th, 2005 |
| Replies: 2 Views: 2,922 Re: prime numbers homework trouble Hi,
1) The "break" statement after the return does not have any effect
2) I think the logic of the program is incorrect and that may be the reason why the program returns non primes. Can u try the... |
Forum: C++ Feb 23rd, 2005 |
| Replies: 1 Views: 9,113 C++: ifstream file pointer not getting reset Hi,
I have the following piece of code. I do the following here
1)open a file.
2) Print the filepointer positon . I get 0
3)Read the file in a while loop till i reach the end
4)close the... |