File Stream C++ Tutorial

#include
#include
istream & skipchar(istream &stream)
{
  int i;
  char c;
  for(i=0;i<5;i++) stream>>c;
  return stream;
}
main()
{
  char str[80];
  cout<<"Enter some characters:";
  cin>>skipchar>>str;
  cout<  return 0;
}
Enter some characters:q
w
e
r
t
r