cout << *string;
string++;
#include <iostream.h>
void show_string(char *string)
{
while (*string != `/0')
{
}
}
void main(void)
{
show_string("Hello, World!");
}
Can also be written:
while (*string)
{
string++;
}
Or
even:
while (*string)
cout << *string++;
Last modified at 8/5/97; 1:30:06 PM
Other Links of Interest
College of Computing | EduTech Institute | GVU Center
Mark Guzdial | Papers | CS 2390 Spring '97 Home Page | STABLE | MMC-CaMILE