But, after completing this program
when I open the text file there is no result at all
what is the problem is it really write the contents to a new.txt file or not. If yes please explain briefly why my text file is not changin
else please give the solution
regards,
Last edited by Narue; Nov 25th, 2008 at 9:42 am. Reason: added code tags
This is your 14th post, and you still don't bother to use code tags. Also it was mentioned quite a lot of times in your previous thread that you should use int main instead of void main .
Sorry but what is the exact difference between void main and int main
I know only one thing void is a data type which specifies the function doesn't return any value.
any thing gr8 diffrence between these two can u explain please
Read this article.
There's a very well explained article by Steve Summit about the incorrect usage of main's return type. It's in the link pasted above. Anyway, here's a direct link. It certainly helped me when I was trying to understand what all the noise about main's return type was... which wasn't very long back actually.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.