You guys helped me a lot last time I posted so now that I have trouble i again turn to you :).Ok can someone tell me with what can I substitute the following code.It is supposed to get some lines and put them in strings.
system("cls");
string user,date,title,description;
cout<<"Please Enter Date:"<<endl;
getline(cin,date);
cout<<"Please Enter Title:"<<endl;
getline(cin,title);
out<<"Please Enter Description"<<endl;
getline(cin,description);
cout<<"Please enter your username to confirm"<<endl;
getline(cin,user);
user=Security::code(user,user);
file_handling::add_entry(date,title,description,user+".usdat");
The problem that really drives me crazy is that this code works perfectly when I compile it separately but when I try to put in my main program,instead of writing "Please Enter Date:"
then letting me type and then writing "Please Enter Title:" the program writes
"Please Enter Date:"
"Please Enter Title:"
and then lets me type which results in incorrect data being written in the database.
Any help with solving this problem will be appriciated.