I have been owrking on a login script using pointers to store the passwords in a single pointer to access later when you try to log in. Here is my script, I need to know what is wrong with this, it won't let me put these variables into the pointer, why? please tell me how.
#include<iostream.h>
void main()
{
float login, passwd;
float *store;
cout<<"Please enter your login name:";
cin>>login;
cout<<"\nPlease enter your password:";
cin>>passwd;
*store==passwd;
*store==login;
if(login, passwd != &store)
{
cout<<"\nWould you like to register? y/n";
}
}