#include <iostream.h>
using namespace std;
int main()
{
int i;
for(i = 10; i > 2; i--)
{
printf("%d\n", i);
}
return 0;
}
to this Syntax:
while ( expression ) statement
my book's example (s = str; // Let the char pointer s
while( *s != '\0') // point to the end of str
++s;
) is confusing.
Edited by WingedPanther, 10 October 2008 - 08:08 AM.
add code tags


Sign In
Create Account

Back to top










