<iostream.h> is an old and now non-standard header.Code:for (i = 1; i <= n; i++) should be for (i = 0; i < n; i++)
The correct header is <iostream>
Remember to use code tags when posting code
What compiler are you using?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 12 of 12
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |