C - C++ Files - Defining own istream

#include<iostream>
 
#include<string>
using namespace std;
 
istream & get(istream &v)
{
  char c;
  v>>c;
  return v;
}
 
 
int main()
{
  char var[80];
  cout<<"Enter some characters:";
  cin>>get>>var;
  cout<<"After storing first character in stream:";
  cout<<var<<'\n';
  return 0;
}