But I cant use getline(cin, int) it has to be a string...
it wont compile otherwise
I also am trying to convert the string "user" to lowercase, with no luck...
Code:
#include <iostream>
#include <sstream>
//string::size_type len = user.length();
//strlen("hi");
using namespace std;
int main ()
{
string user; // (the string user)
string pw;
string em;
int age;
cout<<"Please signup below,"<<"\n"<<"\n";
cout<<"Username: ";
getline(cin, user); // (writes the info the person types)
user = tolower(user); // converts to lowercase, (DOESNT WORK!!))
cout<<"Password: ";
getline(cin, pw);
cout<<"Age: ";
cout<<"E-mail: ";
getline(cin, em);
for (int rt = 0; rt <= 25; rt++)
{
if (rt == 9)
{
cout<<"Welcome to Mythic Aeons, "<<"\n"<<"\n"<<"Details: "<<"\n";
cout<<"Username: "<<user<<"\n";
cout<<"Password: "<<pw<<"\n";
cout<<"Age: "<<age<<"\n";
cout<<"Email: "<<em<<"\n";
}
cout<<"\n";
}
cin.get();
}