# include <iostream>
# include "conio.h"
# include <fstream>
using namespace std;

int main ()
{

ofstream fo;

char c;
cout<<" WELCOME TO REGISTRATION";
cout<<endl;
cout<<"===============================================================================";
cout<<endl;
cout<<endl;
cout<<endl;
cout<<"R- registration new users";
cout<<endl;
cout<<"E- examine users";
cout<<endl;
cout<<"______________________________________________________________________________";
cout<<endl;
cout<<" choose action for continuation";
cout<<endl;
cout<<"______________________________________________________________________________";
cout<<endl;
cin>>c;
if (c=='R')
{
fo.open ("info.txt");
char l [255];
int p;
cout<<"ENTER YUOR LOGIN";
cout<<endl;
cin>>l;
cout<<"ENTER YUOR PASSWORD";
cout<<endl;
cin>>p;
cout<<endl;
fo<<l<<" "<<p;
fo.close ();
cout<<"--------------------------------------------------------------------------------";
cout<<" D?4??4??1? SAVE COMPLETE";
cout<<endl;
cout<<" thank you for registration";
cout<<endl;
cout<<"--------------------------------------------------------------------------------";
}
if (c=='E')
{
ifstream fi;
fo.open ("info.txt");
char l [255];
int p;
fi>>l>>p;
fi.close ();

}
getch ();
getch ();
getch ();
getch ();
getch ();
getch ();
return 0;
}